HTTP Basic Auth & Data URIs
Encode credentials or small inline SVG/CSS payloads safely.
Encode and decode UTF-8 text, emojis, and URL-safe Base64URL strings locally in your browser using TextEncoder and Uint8Array.
Converts arbitrary UTF-8 byte streams via TextEncoder into printable 64-character ASCII alphabets with "=" padding (or unpadded Base64URL with "-" and "_").
3 bytes (24 bits) → 4 Base64 sextets (6 bits each, A–Z a–z 0–9 + /)
Alphabet differences defined in RFC 4648.
| Feature | Standard Base64 | Base64URL (RFC 4648 §5) | Common Usage |
|---|---|---|---|
| Index 62 Character | + | - | Safe in URLs without %2B |
| Index 63 Character | / | _ | Safe in filenames & paths |
| Padding Character | = (required) | = (usually omitted) | JWTs omit trailing = |
| Size Overhead | +33.3% | +33.3% | 4 chars per 3 bytes |
Encode credentials or small inline SVG/CSS payloads safely.
Decode Base64URL segments without padding errors.
Percent-encode query values, decode URLs, and inspect parsed query-string parameters.
Test JavaScript regular expressions live with match highlighting, flags, and capture groups.
Generate 1–50 cryptographically random RFC 4122 UUID v4 identifiers via Web Crypto API.
Escape reserved HTML characters into safe entities and decode HTML entity strings.
Convert HEX, RGB, and HSL color codes with live WCAG 2.1 contrast ratio verification.
Inspect JWT header, payload claims, and exp/iat timestamps 100% locally with zero uploads.
Compute cryptographic SHA-1, SHA-256, SHA-384, and SHA-512 hex digests locally via Web Crypto API.