# Base64 Encode / Decode

> Encode text to Base64 or decode it back, UTF-8 safe. Runs entirely in your browser — nothing you paste is sent anywhere.

Source: https://toffeekit.com/tools/base64-encoder

**Category:** [Developer](https://toffeekit.com/category/developer) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/base64-encoder

**Also useful for:** base64, encode, decode, btoa

## How it works

1. Paste your text or Base64 string into the Input box.
2. Pick Encode or Decode from the Mode switch.
3. When encoding, turn on URL-safe if you need - and _ with no padding.
4. Click Copy or Save, or press Swap to feed the result back in the other direction.

## FAQ

### How do I decode a Base64 string?

Set Mode to Decode and paste the string. The readable text appears on the right. Whitespace and line breaks in the input are ignored.

### Why does my decoded Base64 show strange characters?

The data is probably not text. Base64 is also used for images, PDFs and encrypted bytes, and those do not decode into readable characters. For a picture, use the Base64 to Image tool.

### What is URL-safe Base64?

It swaps + for - and / for _ and drops the = padding, so the string can sit in a URL or a JWT without escaping. Tick URL-safe when encoding to get this form.

### Does it handle emoji and non-English characters?

Yes. Text is converted to UTF-8 bytes before encoding, so accents, emoji and other scripts round-trip correctly. A plain btoa call would fail on them.

### Is Base64 encryption?

No. Base64 only changes how data is written, and anyone can decode it. Never use it to hide passwords or secrets.

### Is Base64 Encode / Decode free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Base64 Encode / Decode runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [JSON Formatter](https://toffeekit.com/tools/json-formatter) — Format, minify and validate JSON with clear errors.
- [URL Encode / Decode](https://toffeekit.com/tools/url-encoder) — Percent-encode query values or whole URLs.
- [HTML Entities](https://toffeekit.com/tools/html-entity-encoder) — Escape < > & and quotes, or decode entities.
- [JWT Decoder](https://toffeekit.com/tools/jwt-decoder) — Read a token's header, claims and expiry.
- [Hash Generator](https://toffeekit.com/tools/hash-generator) — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once.
- [UUID Generator](https://toffeekit.com/tools/uuid-generator) — Random v4 or time-sorted v7 UUIDs, in bulk.

