Developer guides
URL encoding, Base64, JSON, UUIDs and regular expressions, with tested examples.
8 min read
Base64 Is Not Encryption: How to Encode, Decode and Check Base64
Base64 turns bytes into 64 safe characters, about a third bigger, and anyone can decode it. See tested UTF-8 and file examples, and why decoding fails with line breaks, data: or padding.
8 min read
How to Fix "Invalid JSON" Errors
Find the mistake from a JSON error's line and column, then fix trailing commas, single or curly quotes, comments, NaN, leading zeros, a BOM or a missing brace.
8 min read
How to URL-Encode a Query Parameter Value
Why spaces, &, +, # and accented letters break a link, how to percent-encode a single parameter value, and how to spot and fix double encoding such as %2520.
8 min read
UUID v4 vs. v7: Which Should You Use?
Use UUID v7 for database keys that should sort by creation time and v4 when an ID mustn't reveal when it was made. Neither is a secret. Tested with 20 of each.
8 min read
Why Your Regex Matches Too Much: Greedy vs. Lazy Quantifiers
Greedy quantifiers like .* grab as much as they can. See why a regex over-matches and fix it with a lazy quantifier, a negated character class, anchors or the s flag.

