Skip to content

Base64 encoder and decoder

Encode text to Base64 or decode a Base64 string, accented characters included.

Plain text (character string)
The Base64 string you entered is invalid or corrupted.
Base64 format

What is Base64 encoding?

The Base64 encoding system is used in computing to turn binary data (such as an image or a PDF file) or character strings (such as text) into a sequence of basic letters, digits and symbols (A-Z, a-z, 0-9, +, /).

The main purpose of Base64 is not to encrypt data to secure it, but to transport it reliably over systems that only handle text (such as images embedded directly in an HTML or CSS file, or in MIME emails).

Base64: encoding vs. encryption (cryptography)

It is a classic beginner developer mistake to treat Base64 as a security mechanism. Base64 is not encryption! There is no password or cryptographic key (as with SHA-256 or AES). Anyone with a decoder (like this tool) can instantly read a Base64 string.

Never store user passwords in Base64 in your database. Always use hashing algorithms such as Bcrypt.

UTF-8 and compatibility

Our tool natively handles the UTF-8format. If you encode text with special characters (é, à, ç, emojis 🚀), the JavaScript algorithm encodes the string correctly so it is not corrupted when decoded.

How it works

How to use the Base64 encoder and decoder

Encode text to Base64 or decode a Base64 string, accented characters included.

  1. Paste your content

    Enter the text or the Base64 string.

  2. Choose the direction

    Encode or decode.

  3. Copy the result

    Copy or download the result in one click.

FreeNo subscription, no hidden limits.
No sign-upOpen the page and use the tool. That’s it.
InstantResults in seconds, on mobile too.
PrivateEverything runs in your browser.

About the Base64 encoder and decoder

Base64 turns data into safe ASCII characters so it can be embedded in a URL, an email, JSON or a “data:” image. It is not encryption.

base64 encode base64 decode base64 encoder base64 decoder text to base64 base64 to text base64 converter online
FAQ

Frequently asked questions about the Base64 encoder and decoder

Does Base64 protect my data?

No. It is an encoding that anyone can reverse, not encryption.

Why is the result longer?

Base64 increases the size by about 33%.

Are accented characters supported?

Yes. The text is encoded as UTF-8.

What is the trailing “=” sign for?

It is padding that completes the last block.

Esc
↑ ↓ navigateEnter open