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
Waiting for input

How to use it

  1. Choose Encode or Decode.
  2. Paste the JSON or text to encode, or the Base64 to decode.
  3. 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.