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.
How to Use
1. Enter Text or Base64
Paste plain text or Base64 strings up to 2 MB.
2. Encode or Decode
Optionally enable URL-Safe (- / _) mode for URLs and tokens.
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 →JSON Formatter
Format, minify, validate syntax errors, sort keys, and inspect collapsible JSON trees.
Text Diff
Side-by-side line diff highlighting additions & deletions with export support.
QR Code Tool
Generate PNG/SVG QR codes or scan QR images locally with safe URL preview.
EXIF Remover
Inspect camera, time & GPS tags and permanently strip metadata locally with verification.