Base64 Encoder & Decoder
Turn text into Base64 or decode a Base64 string back to readable text, with support for emoji, accents and other non-English characters.
- Free
- No sign-up
- Runs in your browser
Base64 is an encoding, not encryption. Do not use it to hide passwords or secrets.
How to use Base64 Encode/Decode
Choose encode or decode
Pick Encode to convert normal text into Base64, or Decode to turn a Base64 string back into the original text.
Paste your input
Type or paste the text or Base64 string. For decoding, the tool checks that the characters are valid and explains any problem it finds.
Copy the result
Copy the output, or press Use result as input to chain a second step, such as decoding something you have just encoded.
Example
Encoding a short phrase
Input
Hello, World!
Result
- SGVsbG8sIFdvcmxkIQ==
- Decoding that string returns Hello, World!
Common uses
Working with APIs
Many APIs and tokens carry data in Base64. Decode a value to see what it contains, or encode one to send in a request.
Embedding small data
Base64 lets a small piece of data travel safely as plain text inside JSON, XML, emails or URLs.
Debugging and learning
Inspect headers, config values and sample strings to understand how Base64 works and what a string really holds.
URL-safe tokens
Switch on the URL-safe option to produce text that can sit in a web address or file name without breaking.
Tips for better results
- Base64 is an encoding, not encryption. Anyone can decode it, so never use it to hide passwords or other secrets.
- URL-safe Base64 swaps plus and slash for dash and underscore, and often drops the equals padding, so it can sit safely inside a web address.
- If decoding fails, check for spaces or line breaks that were added while copying, and for a string that was cut off at the end.
- Base64 makes data about one third larger, so avoid it for big files where a direct upload or download would be more efficient.
Frequently asked questions
Is Base64 a way to keep data secret?
No. It only changes how data is written, and anyone can reverse it in seconds. Use real encryption when something has to stay private.
Does it handle emoji and non-English text?
Yes. Text is converted with UTF-8 before encoding, so accents, emoji and other alphabets come back exactly as they were when you decode.
What does URL-safe mode do?
It replaces the plus and slash characters with a dash and an underscore and removes the padding, producing a string that is safe to put in a URL or file name.
Why do some Base64 strings end with equals signs?
The equals signs are padding that fills the last block so the length is a multiple of four characters. Some systems leave them out.
Is my text uploaded anywhere?
No. Encoding and decoding both happen in your browser, so the text you enter stays on your device.
Last updated:
Guides and tutorials
DevelopersBase64 Encoding Explained in Plain EnglishWhat Base64 is, why it exists, how it turns bytes into text, why it is not encryption, and how to encode or decode a string safely, including URL-safe Base64. · 5 min read
- DevelopersCommon JSON Errors and How to Fix ThemThe JSON mistakes behind most parse errors, such as trailing commas and single quotes, with fixes, plus tips for reading error messages and validating data. · 5 min read