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

  1. Choose encode or decode.
  2. Paste the text. Encode uses UTF-8 bytes, not the old Latin-1 reading of the string.
  3. 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.

Related tools