TuttiTools
B64

Base64 Encoder / Decoder

Encode and decode Base64 strings

What is Base64?

Base64 is an encoding scheme that converts binary data — or any text — into a string made up only of letters, numbers, and a few symbols. The result is safe to transmit through systems that might otherwise misinterpret special characters, like email, URLs, or HTML attributes.

You’ll encounter Base64 regularly when dealing with email attachments, embedding images directly into web pages, passing data in URLs, or reading authentication tokens. It’s not encryption — anyone can decode it — it’s purely a way to represent data in a universally safe text format.

What Does This Tool Do?

This tool encodes plain text or binary data into Base64 format and decodes Base64 strings back to their original form. It works instantly in your browser as you type.

Toggle URL-safe to swap the standard alphabet (+, /, =) for the URL-safe variant (-, _, no padding) — the form used in JWTs, OAuth state parameters, and any token that travels in a URL or filename.

How to Use This Tool

  1. Choose the mode: Encode to convert text to Base64, or Decode to reverse it.
  2. Optionally toggle URL-safe if you need the URL-friendly alphabet.
  3. Type or paste your input into the text area.
  4. The result appears immediately.
  5. Click the copy button to grab the output. The decoder accepts both standard and URL-safe input automatically.

Common Use Cases

Frequently Asked Questions

Is Base64 the same as encryption?

No. Base64 is encoding, not encryption. Anyone can decode a Base64 string without a key. Never use it to protect sensitive information.

Why does Base64 output end with = signs?

Base64 works in groups of 3 bytes. If the input isn’t a multiple of 3 bytes, padding characters (=) are added to complete the group. This is normal.

What is URL-safe Base64?

Standard Base64 uses + and / in its alphabet, plus = for padding — characters that need escaping in URLs and aren’t valid in filenames. URL-safe Base64 swaps + for - and / for _, and drops the = padding entirely. It’s the form used by JWTs, OAuth, and most modern tokens.

Is my data safe?

Yes — all encoding and decoding happens locally in your browser. Nothing is sent to a server.

Related Tools