Base64 Encoder/Decoder

Encode text or files to Base64 and decode it back.

100% Free No sign-up Private

How to Use the Base64 Encoder/Decoder?

Encode text or files to Base64, and decode Base64 back to text or files.

  1. 1

    Choose Encode text, Decode Base64 or File to Base64.

  2. 2

    Type or paste your text, or drop a file.

  3. 3

    Tick URL safe if you need Base64URL for links and tokens.

  4. 4

    Copy the result or download it as a file.

Benefits of Using Our Base64 Encoder/Decoder

Text and files

Encode any text, image or file, and get a ready to use data URI for files.

Unicode safe

Hindi, emojis and all other characters are encoded correctly with UTF-8.

Base64URL option

Create URL safe output for tokens, links and JWT style data.

Private

Encoding and decoding happen only in your browser.

Who Can Use This Base64 Encoder/Decoder?

Developers

Encode credentials, payloads and test data.

Web designers

Embed small icons directly in CSS or HTML.

Email developers

Inline small images in templates.

Students

Learn how binary data is turned into text.

Frequently Asked Questions

Everything you need to know about the Base64 Encoder/Decoder.

What is Base64?

Base64 is a way of writing any data, including images and files, using only 64 safe text characters: letters, numbers, + and /. It lets binary data travel through systems that only handle text, such as email and JSON.

Is Base64 encryption?

No. Base64 is an encoding, not encryption. Anyone can decode it instantly, so never use it to hide passwords or secrets.

Why is the encoded output larger than my file?

Base64 uses four characters for every three bytes of data, so encoded output is about 33 percent larger than the original. That is why it is best for small files and icons.

What is a data URI?

A data URI starts with data: followed by the file type and the Base64 content. You can use it directly as an image source in HTML or as a background in CSS, without a separate file.

All Utility Tools