Developer Resources
Guides & Tutorials
Step-by-step tutorials, language examples, and comparisons for modern developers.
Use Cases
Real-World Use Cases
Learn how to apply our tools for specific real-world scenarios.
Base64 Encoding for Images
Inline small images as data URIs in HTML, CSS, and email. Covers cache tradeoffs, the 33% size bump, CSP img-src data:, ...
→Base64 Encoding for Email
How MIME uses Base64 for attachments and HTML email. Covers 76-character line wrapping, cid: versus data URIs, and why i...
→Base64 Encoding for APIs
Put files in JSON with Base64, or skip it for multipart and presigned URLs. Covers Unicode versus binary, size limits, a...
→JWT for Authentication
Issue a JWT at login, store it in an httpOnly cookie, keep exp short, and inspect HS256 locally. Covers localStorage XSS...
→JWT for API Authorization
Authorize REST calls with Bearer JWTs, scopes, aud, and iss. Covers gateway middleware, why stateless tokens are hard to...
→URL Encoding for Query Strings
Percent-encode query values with encodeURIComponent, not the whole URL. Covers &, =, +, spaces, UTF-8 bytes, and how to ...
→JSON for API Development
Design JSON APIs with the right Content-Type, error objects, pagination, and ISO dates. Covers envelopes, null versus om...
→JSON for Configuration Files
How to structure, validate, and version config.json files. Covers environment overlays, JSON Schema, comments versus JSO...
→Hash Algorithms for Password Storage
Store passwords with Argon2id, bcrypt, or scrypt — not SHA-256. The Hash Generator is for checksums only; use the Passwo...
→Hash Functions for Data Integrity
Verify downloads with SHA-256 checksums and HMAC when you also need authenticity. SHA-1 is legacy; MD5 is omitted on pur...
→Unix Timestamps in Databases
Store UTC epoch seconds in BIGINT to avoid time zones and the Y2038 overflow. Covers milliseconds versus seconds, range ...
→Hex Colors for Web Design
Use #RRGGBB, 3-digit shorthand, RGB, and HSL in CSS. Generate complementary, triadic, analogous, and shade palettes, the...
→Language Tutorials
Language-Specific Tutorials
Code examples and tutorials for JavaScript, Python, and more.
Base64 Encoding in JavaScript
btoa and atob are Latin-1 only. Encode UTF-8 with TextEncoder, use Buffer in Node, switch to URL-safe when + and / would...
→Base64 Encoding in Python
base64.b64encode takes bytes, not str. Encode UTF-8 text, use urlsafe_b64encode for - and _, read files in rb, then chec...
→JSON Parsing in JavaScript
JSON.parse needs try/catch. Reviver and replacer customize conversion. Dates become strings, undefined is dropped, BigIn...
→JSON Parsing in Python
json.loads and load parse text; dumps and dump write it. JSONDecodeError carries line and column. Use parse_float=Decima...
→URL Encoding in JavaScript
encodeURIComponent encodes a query value; encodeURI leaves :/?# intact. URLSearchParams uses + for spaces. Decode once. ...
→Hash Generation in JavaScript
SHA-256 in the browser with Web Crypto (https or localhost) and in Node with createHash. Hex versus Base64 digests. MD5 ...
→Comparisons
Tool & Technique Comparisons
Understand when to use different tools and techniques.
Base64 vs URL Encoding
Base64 turns bytes into ASCII. Percent-encoding makes a value legal in a URL. They look similar and solve different jobs...
→MD5 vs SHA-256
MD5 is a 128-bit hash with practical collisions. SHA-256 is a 256-bit SHA-2 digest and the usual integrity default. Neit...
→JSON vs XML
JSON vs XML for APIs: objects versus tags, native parse versus markup trees, and which local tool to use. The XML valida...
→JWT vs Session Cookies
Stateless JWTs versus an opaque session id in a cookie: revocation, XSS versus httpOnly, token size, and CSRF. Inspect H...
→YAML vs JSON
YAML vs JSON for config: comments and indentation versus a strict grammar. Covers the Norway problem, tabs versus spaces...
→UUID v4 vs UUID v7
UUID v4 is random (unpredictable). UUID v7 (RFC 9562) puts a millisecond timestamp in the high bits for B-tree locality....
→Base64 vs Hex Encoding
Base64 grows binary by 4/3; hex doubles it. Hashes are usually hex; payloads in JSON, MIME, and data URIs are usually Ba...
→Conversion Guides
Data Conversion Guides
Step-by-step guides for common data conversions.
Convert Text to Base64
Encode UTF-8 text to Base64 in the browser. Covers padding, Unicode and emoji, URL-safe mode, and when to use an image c...
→Convert Base64 to Text
Decode Base64 to UTF-8 text locally. Covers missing padding, URL-safe -_ alphabets, invalid characters, and output that ...
→Convert Timestamp to Date
Turn Unix epoch seconds into a readable date. Covers the 10-digit vs 13-digit heuristic, local timezone display, and IST...
→Convert Date to Timestamp
Turn a calendar date into Unix epoch seconds. Covers the local datetime picker versus UTC, Use Now, Y2038, and JWT exp.
→Convert JSON to String
Stringify JSON in the browser: pretty-print with 2-space indent, minify, or escape one string field. Covers dates, circu...
→Convert RGB to Hex
Convert RGB channels to #RRGGBB. Covers the 0–255 formula, 3-digit shorthand, HSL, palettes the converter actually build...
→Error Explainers
Common Errors & How to Fix Them
Diagnose parse errors, circular references, and invalid expressions.
JSON Parse Error: Unexpected Token
Fix Unexpected token JSON.parse errors. Trailing commas, single quotes, a 404 body, and a UTF-8 BOM all produce differen...
→JSON Circular Reference Error
Fix Converting circular structure to JSON. Covers DOM nodes, a WeakSet replacer, why structuredClone does not help, and ...
→Invalid Cron Expression Errors
Fix invalid cron expressions: field count, ranges, steps that do not slide from now, and day-of-month versus day-of-week...
→Cheat Sheets
Syntax Cheat Sheets
Quick-reference syntax for JSON, cron, and regular expressions.
JSON Syntax Cheat Sheet
JSON syntax as RFC 8259 defines it: the six types, quoted keys, allowed escapes, and the JavaScript leftovers that are n...
→Cron Syntax Cheat Sheet
Five-field cron explained then listed: minute, hour, day of month, month, day of week, plus *, lists, ranges, and steps....
→Regex Cheat Sheet
JavaScript regex as used by the Regex Tester: classes, flags, groups, lookahead, replace tokens, and the usual pitfalls ...
→Tool Walkthroughs
Walkthroughs for Recent Tools
chmod, image resize, passwords, Markdown preview, HMAC, and JWT HS256 verify.
Unix File Permissions and chmod
Read rwx as 4-2-1, convert 644 and 755, and handle setuid, setgid, and the sticky bit. Build a pasteable chmod command i...
→Resize and Compress Images in the Browser
Shrink PNG, JPEG, WebP, or GIF locally on a canvas. Quality 10–100 for JPEG/WebP, 10 MB and 8192px caps, GIF first frame...
→Generate Strong Passwords and Passphrases
CSPRNG passwords with a live entropy meter, a 1024-word passphrase list (10 bits per word), and look-alike exclusion. No...
→Live Markdown Preview with GFM Tables
Preview GitHub Flavored Markdown in the browser with tables, fenced code, and strikethrough. marked + DOMPurify; copy HT...
→HMAC-SHA256 in the Browser
HMAC authenticates with a local secret; a bare SHA-256 only fingerprints bytes. RFC-style vectors, empty-key rejection, ...
→Verify JWT HS256 Signatures Locally
Anyone can read a JWT payload. HS256 verify needs the issuer secret and Web Crypto HMAC. RS256 is decoded, not verified....
→