URL / Base64 / HTML Encoder
Six encoding formats, instant two-way conversion: **URL** (encodeURI), **URI component** (encodeURIComponent), **Base64** (standard padding), **Base64URL** (JWT / OAuth), **HTML entities**, **Unicode escape** (`\uXXXX`). Pure frontend.
0 bytes
0 bytes
›How to use
- Choose Encode or Decode, then pick one of 6 formats.
- Type / paste a string on the left — the right side updates instantly, no button to click.
- Hit ↕ Output → input to flip the result back into the input — perfect for round-trip sanity checks (encode → decode = original).
- Copy the output to clipboard, ready to paste into curl, Postman, or a URL bar.
Tips
- URL vs URI component —
encodeURIpreserves:/?#&=, use for full URLs;encodeURIComponentescapes everything, use for query-string values. - Base64 vs Base64URL — JWT, OAuth state and URL-safe cookies use Base64URL (
+/=→-_with no padding). Mail attachments use standard Base64. - HTML entities decoder accepts named (
&), numeric (') and hex (中) forms; encoder only escapes the canonical 5 (& < > " ') to avoid over-escaping. - Unicode escape auto-picks BMP (
\u4e2d) vs astral plane (\u{1f30d}for emoji).
💡 Pure functions over the built-in browser APIs — no extra deps, zero bundle increase. Works offline.
Related tools
- Taiwan test data generatorValid TW national ID, BAN, mobile, Luhn credit cards
- JSON formatter + Schema validatorFormat / minify / sort + JSON Schema validation
- Unix time & timezone converterSeconds / ms / ISO interop with timezone-aware display
- Markdown batch translatorBring-your-own OpenAI / Anthropic / Google API key. Batch-translate .md files while preserving frontmatter / code / links