Skip to content
ToolBook

Base64 Encoder / Decoder

Encode and decode Base64 text, with UTF-8 and URL-safe support.

Loading the tool…

Turn text into Base64 or decode Base64 back to text. The tool handles UTF-8, so Hindi and other scripts, symbols and emoji survive a round trip, and it supports the URL-safe alphabet used in tokens and links. The conversion happens in your browser; what you paste is not uploaded.

How to use Base64 Encoder / Decoder

  1. Choose Encode to turn text into Base64, or Decode to turn Base64 back into text.
  2. Type or paste your input, or press Sample.
  3. Turn on URL-safe if you need "-" and "_" instead of "+" and "/", and use Padding to keep or drop the "=" at the end.
  4. Copy or download the result.

Limits and tips

  • Base64 is an encoding, not encryption. Anyone can decode it, so do not use it to protect secrets.
  • If the decoded bytes are not valid text (for example an image), the tool shows replacement characters and a hex preview instead of pretending it is text.
  • A pasted data: URI is detected and only the part after "base64," is decoded.
  • Input larger than 1 MB runs when you press the button, not as you type.

Private by design: how it works

This tool runs in your browser. The text you type or paste stays on this device and is never sent to a server. You can check it: open your browser network panel while you use the tool.

How we verify privacy ›

Frequently asked questions

Is Base64 a way to keep data private?

No. Base64 only changes how data is written so it can travel through systems that expect plain text. Anyone can reverse it in one step. Use real encryption when you need to protect something.

Why does my Base64 fail to decode?

Common causes are a stray space or line break, a missing character at the end, or mixing the standard and URL-safe alphabets. The error message tells you which character looks wrong, and switching the URL-safe option often fixes it.

What is URL-safe Base64?

It replaces "+" with "-" and "/" with "_" so the value can sit inside a URL or a token without being escaped. Padding with "=" is often left out in that form.

Does it work with Hindi and emoji?

Yes. Text is converted as UTF-8 before encoding, and decoded the same way, so scripts such as Devanagari and emoji come back exactly as typed.

Is anything uploaded when I use this tool?

No. Encoding and decoding run in your browser and your text is not sent anywhere. The network panel in your browser stays quiet while you type.

Last updated 2026-10-04 · Reviewed by the ToolBook team