Base64 Encoder / Decoder

Encode and decode text with Base64 online — free, fast, private. Supports Unicode. All processing happens in your browser, no data is uploaded.

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text. Supports Unicode, all local.

How to use the Base64 tool

Three simple steps — no signup, no upload, no waiting.

  1. Type or paste your text into the Input area. For encoding, use any text including emoji and Unicode characters. For decoding, paste a valid Base64 string.
  2. Toggle between Encode and Decode mode using the switch. Output updates automatically as you type — no button click needed.
  3. Click Copy to copy the result to your clipboard, or Swap to move the output to the input area for further processing. Enable URL Safe for web-friendly Base64 output.

Features

A local Base64 encoder built for developers and everyday use.

Private & local

All encoding and decoding happens in your browser. Nothing is uploaded, logged, or stored — your data never leaves your device.

Auto-update as you type

No need to click a button. Output refreshes automatically while you type, with a short debounce for smooth performance.

Full Unicode + URL Safe

Encode any text — Chinese, Japanese, Arabic, emoji, and more. Toggle URL Safe mode for web-friendly output without + or / characters.

Frequently asked questions

Common questions about Base64 encoding and how our tool works.

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It uses 64 characters (A-Z, a-z, 0-9, +, /) plus = for padding. It's commonly used for embedding images in HTML/CSS (data URIs), sending binary data in JSON APIs, and storing binary data in text-only formats.

What is URL Safe Base64?

Standard Base64 uses + and / characters, which have special meaning in URLs. URL Safe Base64 (RFC 4648 §5) replaces + with -, / with _, and omits the = padding. Enable the URL Safe checkbox in the tool to use this variant — ideal for URL parameters, file names, and JWTs.

Can I encode files with this tool?

This tool is designed for encoding and decoding text strings. If you need to encode an image or other file to Base64, use our image tools or a dedicated file-to-Base64 converter. For text strings only — this page handles that perfectly with full Unicode support.

Does this tool work with Chinese or other non-Latin text?

Yes. Standard browser Base64 APIs (btoa/atob) only work with Latin-1 characters. Our tool automatically uses TextEncoder and TextDecoder internally, so all Unicode characters — including Chinese, Japanese, Korean, Arabic, Cyrillic, emoji, and special symbols — encode and decode correctly.

Is Base64 encryption?

No. Base64 is encoding, not encryption. It transforms data into a different format but does not provide any security. Anyone can decode a Base64 string back to its original form. Do not use Base64 to protect sensitive information.