Base64 encode and decode in your browser
Paste text, or choose a file, to get its Base64 string. Or paste a Base64 string to decode it back into readable text. Text is handled as UTF-8, so Hindi, accented letters and emoji round-trip correctly. Developers use it for API tokens, basic-auth headers, JSON fields and email attachments. Everything runs in this tab.
Examples
| Text | Base64 |
|---|---|
| hello | aGVsbG8= |
| MondayKit | TW9uZGF5S2l0 |
| user:pass | dXNlcjpwYXNz |
Base64 is not encryption
Anyone can decode Base64 in a second. Don’t use it to hide passwords or personal data. For a real secret, use the password generator. To check that a file hasn’t changed, use the hash generator.
Tips
- Encoded output is about a third larger than the original.
- For images in HTML or CSS, Image to Base64 builds the full data URI.
- Encoding a value for a URL instead? Use the URL encoder.
Limits
Decoding always returns text. Binary files encoded as Base64 can’t be downloaded as files here.
