Base64 encode and decode
Encode or decode UTF-8 text as Base64, with an option for the URL-safe alphabet.
Nothing you type is sent. The work stays in this browser.
How to use it
- Choose encode or decode.
- Paste the text. Encode uses UTF-8 bytes, not the old Latin-1 reading of the string.
- URL-safe mode uses - and _ and can decode strings that omit padding.
Base64 is an encoding, not encryption. Anyone can reverse it.
Decoding ignores ASCII whitespace. Other illegal characters produce an error rather than a partial result.
Large pastes are handled in chunks so the browser's btoa limit is not the first failure.