Forge / Base64

Base64 Encoder / Decoder

Encode text to Base64 or decode it back, with safe Unicode handling, URL-safe output, line wrapping and data URIs. Everything runs locally — nothing leaves your browser.

Input

Output updates live as you type.

Output

Encoded
Input bytes: 0 Output length: 0

Encode or decode a file

Stays on your device

Frequently asked questions

Is Base64 encryption?

No. Base64 is an encoding, not encryption. It is trivially reversible by anyone and provides no confidentiality. Never use it to protect secrets — use real encryption instead.

Does it handle Unicode and emoji?

Yes. Text is encoded as UTF-8 bytes before Base64, so emoji and non-Latin characters round-trip correctly. Many naive encoders break on emoji — this one does not.

Are my files uploaded?

No. All processing happens locally in your browser. No file ever leaves your device.

About Base64

Base64 is a binary-to-text encoding that represents binary data using 64 ASCII characters (A–Z, a–z, 0–9, +, /), with = padding. It is commonly used to embed binary data in JSON, XML, HTML, CSS, email (MIME), and data URIs, and to transmit data over channels designed for text.

The URL-safe variant swaps +- and /_ and drops padding, making the output safe for URLs, filenames and query strings. This tool supports both standard and URL-safe forms, line wrapping for compatibility with legacy systems, and conversion to data URIs for embedding files directly in markup.

Related tools