All Developer

Base64 Encoder and Decoder

Encode text to Base64 or decode it back.

base64.local
Result
The Base64 will appear here.

Overview

Encodes text to Base64 and decodes Base64 back to text. Base64 is how binary or text data gets carried through systems that only accept plain text, such as data URLs, email, and some API fields. It runs in your browser, so your input is never uploaded.

How it works

Base64 represents data using a set of 64 printable characters. It takes your input three bytes at a time and maps them onto four characters from that set, which is why encoded output is a bit longer than the original. The process is fully reversible, so decoding turns the Base64 string back into the original text. The conversion happens locally on your device.

How to use it

  1. Choose encode or decode.
  2. Paste your text or Base64 string.
  3. Read the converted result.
  4. Copy it for use in your data URL, header, or payload.

Examples

Encoding

The text "Hello" encodes to "SGVsbG8=".

Decoding

Paste a Base64 string from an API field to read the plain text it represents.

FAQ

Is Base64 encryption?
No. It is encoding, not encryption. Anyone can decode it, so it offers no security; it only makes data safe to transport as text.
Why is the encoded text longer?
Base64 turns every three bytes into four characters, so output is about a third larger than the input.
What is the trailing equals sign for?
It is padding, added so the output length is a multiple of four characters.
Is my data uploaded?
No. Encoding and decoding run in your browser.

Related tools

Embed this tool

Paste this snippet to put the tool on your own site. It runs entirely in the visitor's browser, the same as it does here.

<iframe src="https://tooldok.com/embed/base64/" title="Base64 Encoder and Decoder by Tooldok" width="100%" height="560" style="border:1px solid #16130d;border-radius:16px;max-width:720px" loading="lazy"></iframe> <p style="font:13px sans-serif"><a href="https://tooldok.com/tools/base64/" target="_blank" rel="noopener">Base64 Encoder and Decoder</a> by <a href="https://tooldok.com/" target="_blank" rel="noopener">Tooldok</a></p>