← All Tools

Base64 Encoder

Encode or decode text and files to/from Base64. No data leaves your browser.

Input Text

How to use the Base64 Encoder

  1. Choose a mode

    Text → Base64, Base64 → Text, or File → Base64.

  2. Add your input

    Type or paste text, or pick a file.

  3. Copy the result

    Copy the output or a ready-made data URI, or download it as .txt.

Frequently asked questions

What is Base64?

A way of writing binary data with 64 plain-text characters, so it can travel safely inside JSON, emails, URLs or HTML.

Is Base64 a form of encryption?

No. Anyone can decode it — it’s an encoding, not a way to protect data. To protect files, use PDF Encrypter or a password.

How do I embed an image in HTML or CSS?

Use File → Base64 and copy the data URI. It can go straight into an img src or a CSS url().

Does it handle emoji and non-English text?

Yes. Text is encoded as UTF-8, so every character decodes back correctly.

Why is the Base64 output larger than the original?

Base64 represents every 3 bytes with 4 characters, so the result is about 33% larger.