Encode & Decode · Runs in your browser
JSON Base64 Encoder & Decoder
Encode JSON or text to Base64, or decode Base64 back — with full UTF-8 support and the URL-safe alphabet used in JWTs and URLs.
Input
Drop a file to load it
Output
How to use it
- Choose Encode or Decode.
- Paste the JSON or text to encode, or the Base64 to decode.
- Copy the result. Decoded JSON is formatted automatically.
UTF-8
Text is encoded as UTF-8 bytes first, so “café” and emoji round-trip correctly — unlike the browser’s btoa(), which fails on them.
URL-safe
URL-safe Base64 uses - and _ instead of + and / and drops the = padding. Decoding accepts either alphabet automatically.
Not encryption
Base64 only changes how bytes are written. Anyone can decode it, so never use it to hide secrets.
More encode & decode tools
All free, all private, all running locally in your browser.