Encode text or files to Base64, or decode Base64 back to readable text. Supports emoji and other UTF-8 characters, and the URL-safe alphabet. Nothing is uploaded.

How It Works

  1. Choose a Mode: Pick Encode to turn text into Base64, or Decode to turn Base64 back into text.
  2. Add Your Input: Type or paste text. To encode a file, choose it with the button or drop it onto the text box.
  3. Pick an Alphabet: Use Standard for most purposes, or URL-safe for values that go in URLs and file names.
  4. Copy or Download: Copy the result, or download it as a text file.

Key Features

Frequently Asked Questions

Is Base64 a form of encryption?

No. Base64 only changes how data is written, so anyone can decode it. Never use it to hide passwords or other secrets.

Why does my decoded text show an error?

The error explains what went wrong. Either the input has characters that Base64 does not use, it is cut off part way through, or it decodes to data that is not text, such as an image.

What is URL-safe Base64?

Standard Base64 uses + and /, which have special meanings in URLs. URL-safe Base64, used by JSON Web Tokens among others, uses - and _ instead and usually drops the = padding at the end.

Why is the Base64 version bigger than my file?

Base64 writes every 3 bytes as 4 characters, so encoded data is about a third larger than the original.

Base64 Encoder & Decoder

Encode and Decode Text and Files

You can also come chat with us on the Stoic Dreams discord server.

If this tool saved you time today, please consider supporting the project via [GitHub Sponsors](https://github.com/sponsors/StoicDreams). Every contribution helps me build more utilities for the community. About Ap Tul Contact Stoic Dreams Privacy Terms & Conditions