Base64 Encoder & Decoder (Unicode Safe)

Encode and decode Base64 strings locally using UTF-8 TextEncoder/TextDecoder so international characters and Emoji always round-trip cleanly.

100% Browser-Local · Zero Upload Free · No Membership
Input0 chars
Result

How to Use

1

1. Enter Text or Base64

Paste plain text or Base64 strings up to 2 MB.

2

2. Encode or Decode

Optionally enable URL-Safe (- / _) mode for URLs and tokens.

3

3. Swap or Copy

Swap input/output anytime or copy with one click.

Frequently Asked Questions

Why does standard JavaScript btoa fail on Chinese or Emoji?

Native btoa expects Latin-1 bytes; we encode text to UTF-8 bytes first so all Unicode works reliably.

Are unpadded Base64 strings supported when decoding?

Yes, padding (=) is handled automatically during decoding.

Recommended Next Tools

All Tools →