Skip to main content

Base64 Encoder / Decoder

Encode text to Base64 and decode Base64 back to text.

Runs in your browser

The converted value will appear here.

Encoding happens in this tab. Base64 is an encoding, not encryption, so never treat it as a way to protect secrets.

About the Base64 Encoder / Decoder

Base64 turns arbitrary bytes into safe ASCII characters, which is why it appears in data URLs, basic authentication headers, email attachments and JSON web token payloads. This tool converts in both directions and handles full Unicode correctly.

Remember that Base64 is an encoding, not encryption. Anyone can decode it instantly, so never treat it as a way to hide sensitive values.

How to use the Base64 Encoder / Decoder

  1. 1Choose Encode or Decode.
  2. 2Paste your text or Base64 string.
  3. 3Optionally switch on URL-safe output when the value will appear in a link.
  4. 4Copy the result, or swap direction to check the round trip.

Features

  • Full Unicode support, including emoji and non-Latin scripts
  • URL-safe variant with hyphen and underscore characters
  • Clear errors for malformed Base64 input
  • Byte and character counts for both sides
  • Instant swap between input and output

Why people use it

  • Read a token payload or encoded configuration value quickly.
  • Build a small data URL without a build tool.
  • Debug an authorisation header by decoding it.

Common use cases

  • Decoding the middle segment of a JSON web token to inspect its claims.
  • Encoding a short SVG for inline embedding.
  • Checking a Base64 value passed between two services.

Privacy and your data

Conversion is performed locally, so tokens you decode never leave your browser.

Frequently asked questions