Skip to content
SysA&E

Base64 encoder and decoder

Encode text to Base64 or decode it back, with a URL-safe option.

Browser Runs in your browser. Nothing you enter leaves this device.

What this tool does

Convert text to Base64 and back. Everything happens in your browser, which matters when the string is a token, a credential or a config value you would rather not paste into a site that logs it.

How to use it

  1. Choose Text to Base64 or Base64 to text.
  2. Paste your input. Whitespace and line breaks in Base64 input are ignored.
  3. Tick the URL-safe option for the Base64URL alphabet used in JWTs and URLs.
  4. Copy the result. If decoded bytes are not text, they are shown as hex instead.

Questions and answers

Is Base64 encryption?

No. It is an encoding anyone can reverse. It makes binary data safe to put in text, nothing more. Never use it to hide a secret.

What is the difference between Base64 and Base64URL?

Base64URL replaces + with - and / with _ and usually drops the = padding, so the result is safe in URLs and file names. JWTs use it.

Why does decoding give strange characters?

The data is probably binary, such as an image or a key, rather than text, or it was encoded with a different character set. The tool shows non-UTF-8 output as hex so you can still read it.