javahandson.com · developer tools

Base64 Encoder / Decoder

Encode text or files to Base64 and decode Base64 back, with correct UTF-8, the URL-safe and MIME variants, and error messages that name the actual problem. Nothing you paste leaves your browser.

Pick a direction, or leave it on Auto and paste.

Base64URL swaps + / for - _ — what JWTs, OAuth and URLs need.

Tokens usually drop the =.

Encode a file to Base64

The file is read in your browser with the FileReader API. It is not uploaded.

Drop a file here or select one. Images, PDFs, keystores, anything.
No file loaded

Ready to paste

The same thing in Java