Base64 Encode and Decode Online

Tools / Developer Tools

Convert text to Base64 or decode Base64 back to readable text. UTF-8 characters and an optional URL-safe format are supported.

How to use the Base64 Encoder and Decoder

  1. Type or paste your text or Base64 into the box.
  2. Click Encode to turn text into Base64, or Decode to turn Base64 back into text.
  3. Tick URL-safe if the result goes into a web address, then copy it.

Tips and common uses

Base64 represents binary or text data using only safe characters, which is why it appears in email attachments, data URLs and API headers.

  • Base64 is an encoding, not encryption, so anyone can decode it.
  • Decode unknown strings to inspect them, but do not trust or run what you find.
  • URL-safe Base64 swaps some characters; use the matching variant when the string goes inside a URL.

Frequently asked questions

What is Base64?

It is a way of writing data using only letters, numbers and a few symbols, so it can travel safely through systems built for text.

Is Base64 encryption?

No. Anyone can decode it, so never use it to protect secrets.

Why does decoding fail?

The text may contain characters outside the Base64 alphabet, or it may be cut off. Check that you pasted all of it.

More free tools

Free to use, with no sign-up or login. This tool runs in your browser and does not store your data.

Worked example

Encode the text ZinoLens and you get Wmlub0xlbnM=. Decode that string and you get ZinoLens back. Base64 turns bytes into plain text characters so they can travel through systems that only handle text, for example in email or in a data URL.

When to use this tool

Use it for data URLs, basic authentication headers, tokens and debugging encoded values.

Good to know

  • Base64 is encoding, not encryption, so anyone can decode it.
  • It makes data about a third larger.
  • Do not put secrets in Base64 and think they are protected.

More free tools: URL Encoder and Decoder, JSON Formatter, Hash Generator. Browse all ZinoLens tools.