Base64 Encoder Decoder
Encode and decode Base64 strings with proper UTF-8 support.
About this tool
Convert text to Base64 for data URIs, tokens, and transport-safe payloads — then decode back with UTF-8 handling for international characters.
How to use
- Choose Encode or Decode mode.
- Paste your text or Base64 string.
- Run the conversion and copy the result.
Examples
- Encode an API key for a header demo.
- Decode a Base64 email attachment snippet.
- Create a data URI prefix for small assets.
Benefits
- UTF-8 safe encode/decode
- Clear error on invalid Base64
- Copy results instantly
- Works offline after load
Frequently asked questions
Why do some decoders break emoji?+
Naive window.btoa usage assumes Latin-1. We encode via TextEncoder so Unicode survives round-trips.
Is Base64 encryption?+
No. Base64 is encoding, not encryption. Anyone can decode it.
Related tools
More in categoryURL Encoder Decoder
Encode and decode URL query strings and path segments safely.
Developer Tools
JSON Formatter
PopularBeautify or minify JSON with clear validation errors.
Developer Tools
UUID Generator
PopularGenerate RFC 4122 version 4 UUIDs in bulk, instantly.
Developer Tools
JSON Validator
PopularValidate JSON syntax and inspect key counts instantly.
Developer Tools
Character Counter
PopularCount characters with or without spaces, plus UTF-8 byte size.
Text Tools
Image Compressor
PopularCompress images in your browser with adjustable quality.
Image Tools