Base64 encoder & decoder
Encode text to Base64 or decode Base64 strings back to readable text. Supports full Unicode including emojis. 100% client-side.
SGVsbG8sIFdvcmxkISBUaGlzIGlzIGEgQmFzZTY0IGVuY29kaW5nIHRlc3Qu
What is Base64 Encoder & Decoder?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /). It is widely used in web development to embed images in CSS or HTML (data URIs), encode email attachments (MIME), transmit binary data in JSON APIs, and store credentials in HTTP Basic Authentication headers. This free Base64 encoder and decoder tool lets you convert any text to its Base64 representation or decode a Base64 string back to readable text. Unlike many online tools, this one fully supports Unicode characters including emojis, accented letters, CJK characters, and other multi-byte text through proper UTF-8 encoding. The entire conversion runs in your browser using the native btoa/atob functions with UTF-8 wrapping — nothing is sent to a server, making it safe for encoding API keys, tokens, or other sensitive strings.
How to Use Base64 Encoder & Decoder
- 1
Select encode or decode mode
Choose "Encode" to convert plain text into a Base64 string, or "Decode" to convert a Base64 string back into readable text. The mode switch is at the top of the tool.
- 2
Enter your text or Base64 string
Type or paste your input into the text area. For encoding, enter any text including Unicode and emojis. For decoding, paste a valid Base64 string. Invalid Base64 input will show a clear error message.
- 3
Copy the converted output
The result appears instantly as you type. Click the Copy button to copy the encoded or decoded output to your clipboard for use in your code, API calls, or configuration files.
Features
- Encode any text to Base64 with full Unicode and UTF-8 support
- Decode Base64 strings back to readable plain text instantly
- Handles emojis, accented characters, and multi-byte Unicode correctly
- Clear error messages for invalid Base64 input during decoding
- Real-time conversion as you type with zero server round-trips
- One-click copy to clipboard for quick integration into your workflow
Related Tools
JSON Formatter & Validator
Pretty-print and validate JSON with 2 / 4 space indentation.
JSON to CSV Converter
Convert JSON arrays to CSV format. Auto-detects columns, proper escaping, download as .csv.
CSV to JSON Converter
Convert CSV data to a JSON array of objects. Handles quoted fields and commas.
HTML Formatter & Minifier
Beautify messy HTML with proper indentation or minify it for production.
HTML Minifier
Minify HTML by stripping comments, collapsing whitespace. Shows size savings.
CSS Formatter & Minifier
Beautify CSS with proper indentation or minify it for production. Strips comments.