B64

Base64 Encoder

Encode text to Base64, with correct Unicode handling.

base64.tool
0 chars
Result will appear here
Nothing you paste here is ever sent to a server - conversion happens locally in your browser.
Overview

What is a base64 encoder?

Base64 is an encoding - not encryption - used to safely represent binary or text data as plain ASCII characters, commonly needed for embedding data in JSON, URLs, or email. This tool encodes text into Base64, with correct handling of Unicode characters like emoji and accented letters.

Quick start

How to use this tool

  1. 1Type or paste the text you want to encode (or upload a text file).
  2. 2The Base64 result appears instantly on the right.
  3. 3Use Swap to flip to decode mode using the current output as the new input.
  4. 4Copy the result or download it as a file.
Where it helps

Common use cases

Encoding credentials or tokens for a Basic Auth header
Embedding small binary-safe data inside JSON or a URL
Preparing a data URI for a small inline image or font
Generating Base64 test fixtures for an API or script
Good to know

Frequently asked questions

Is Base64 the same as encryption?

No. Base64 is just an encoding - anyone can decode it instantly with no key required. It provides no confidentiality; use real encryption if you need to keep something secret.

Does this handle emoji and non-English text correctly?

Yes - text is converted to UTF-8 bytes before encoding, so emoji, accented characters, and non-Latin scripts round-trip correctly.

Can I encode a whole file, not just text?

This tool is built for text input. For binary files, the encoded output would need to represent raw bytes rather than readable text - a dedicated file-to-Base64 flow would suit that better.

Is my data uploaded anywhere?

No - encoding happens entirely in your browser.

quick_facts.json

{

"runs_in_browser": true,

"data_sent_to_server": false,

"signup_required": false,

"price": "free",

"category": "Encoding"

}

Related tools

B64
No signup
Base64 Decoder

Decode Base64 back to readable text, with correct Unicode handling.

Open tool
URL
No signup
URL Encoder

Percent-encode URLs and query strings, component or full-URI mode.

Open tool
URL
No signup
URL Decoder

Decode percent-encoded URLs and query strings back to readable text.

Open tool