Data Conversion & GenerationLast updated: 2026-09-09

Base64 Converter

Encode or decode text, images and files to and from Base64.

Open My tools

Examples and how it works

Base64 encodes bytes as printable characters. To recover text, decode Base64 to bytes and interpret those bytes as UTF-8.

Base64 → UTF-8

Input
SGVsbG8=
Output
Hello

Base64 is not encryption. Decoded data may be a binary file instead of text, and can fail UTF-8 decoding.

ShareXfB!L

How to use

  1. 1

    Input

    Type text or select a file.

  2. 2

    Convert

    Encode or decode.

  3. 3

    Copy

    Copy or download the result.

Features

  • Encode and decode text and files
  • Convert images and PDFs to Base64
  • Secure processing entirely in your browser
  • Copy or download results

Use cases

Check authentication header format

Check the Base64 format of an authentication header with test values. Do not enter real secrets.

Embed images in HTML

Convert images to Base64 data URIs for embedding directly in HTML or CSS.

Convert data for APIs

Encode or decode Base64 payloads during API development.

Details

Base64 is an encoding scheme that converts binary data into text. It is used in email attachments, authentication headers, and data URIs for embedding images.

You can encode text, images, PDFs and other files to Base64. The result can be copied or downloaded for immediate use.

The decode function restores Base64-encoded data to its original text or file form. Useful for debugging and analyzing data URIs during development.

FAQ

What is Base64?

An encoding scheme that converts binary data into text. It lets you handle binary data in text-based mediums like email and JSON.

Can I embed images in HTML?

Yes. Encode the image to Base64 and use the data:image/png;base64, format in an img src attribute.

Can it handle large files?

It depends on your browser memory. Files up to a few MB are handled without issues.

Can I convert files to Base64?

Yes. You can convert files as well as plain text.

All processing happens in your browser. Your files are never uploaded.

Verified: Regression tests protect the no-upload design for text and files

Did you know?

Base64 was invented to send binary data through email, which only handled text.

Optional usage measurement settings

Only with your consent, a random browser ID and tool/learning events are sent to measure return visits. This is pseudonymous measurement. Inputs, answers, keys, files and search terms are excluded. Consent expires after 90 days. Declining does not limit any feature.

Measurement is off.

Retention and privacy