Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back to text, with a URL-safe (base64url) option. UTF-8 aware, so emoji and accented characters round-trip perfectly. Runs in your browser.

Base64

About Base64

Base64 represents binary or text data using 64 printable ASCII characters, encoding every three bytes as four characters. It is widely used to embed images in CSS, send data in URLs and store small blobs in JSON. Text is treated as UTF-8, so emoji and accented characters round-trip safely.

The URL-safe variant swaps + and / for - and _ and drops the = padding, so the result is safe to drop into a URL.

Everything is encoded in your browser, nothing is uploaded.

What this does

A Base64 encoder turns text into 64 printable ASCII characters, and decodes it back, with a URL-safe (base64url) option.

How to use it

  1. Paste text or Base64.
  2. Choose encode or decode.
  3. Toggle URL-safe if needed.
  4. Copy the result.

How it works

Text is encoded as UTF-8 first, so emoji and accented characters round-trip perfectly. URL-safe mode swaps + and / for - and _ and drops the = padding.

Example

“Hi” encodes to “SGk=”, and “SGk=” decodes back to “Hi”.

Sources & methodology

Last updated .

Frequently asked questions

What is Base64 used for?

Base64 turns binary or text data into 64 printable ASCII characters, so it can be embedded in URLs, CSS, JSON or email where raw bytes are not allowed.

What does the URL-safe option do?

It produces base64url: + and / become - and _, and the = padding is dropped, so the result can be placed directly in a URL.

Does it handle emoji and accents?

Yes. Text is encoded as UTF-8 first, so any Unicode character (including emoji) encodes and decodes correctly.

Is my text uploaded?

No. Encoding and decoding happen entirely in your browser; nothing is sent anywhere.