Base64 & URL Encoder / Decoder
Encode and decode Base64 and URL percent-encoded strings with full multi-byte UTF-8, emoji, and URL-safe character support client-side.
How to use this tool
Choose Base64 or URL mode, then select Encode or Decode.
Type or paste your data with real-time character and byte counting.
Click 'Copy' to use the converted string in headers, query parameters, or configs.
Frequently Asked Questions
How does this tool handle multi-byte UTF-8 characters and emojis?
Traditional JavaScript btoa() fails on characters outside Latin-1. This tool uses native TextEncoder and TextDecoder to handle all UTF-8 characters (including Hindi, Chinese, and emojis) without corruption.
What is URL-safe Base64 (base64url)?
Standard Base64 uses '+' and '/', which have reserved meanings in URL query strings and path segments. Base64URL replaces '+' with '-' and '/' with '_', and omits trailing '=' padding.
What is the difference between encodeURI and encodeURIComponent?
encodeURI is designed for complete URLs and preserves protocol delimiters (://, ?, &). encodeURIComponent encodes every special character, making it safe for query parameter values.
Is there a limit on text size?
Because encoding runs entirely in your local browser memory, payloads up to several megabytes convert instantaneously with 0 network latency.
Deepen your architecture knowledge with practical, production-tested guides:
Client-Side Privacy Guarantee
This tool never transmits your payloads to any server. Open DevTools (F12) → Network tab to verify that zero HTTP requests are sent while using this page.