🔁 Base64 Encoder/Decoder
Encode and decode Base64 text.
Free Base64 encoder and decoder
Base64 is a way of writing data using only 64 safe characters: letters, numbers, plus and slash. This tool converts normal text into Base64 and turns Base64 back into readable text. It supports Unicode, so emoji, accented letters and non-English alphabets work correctly. The conversion runs in your browser and nothing you type is uploaded.
How to use it
- To encode, type or paste text into the top box and click Encode.
- To decode, paste Base64 into the top box and click Decode.
- Read the result in the lower box, then click Copy result to use it.
The decoder also accepts URL-safe Base64 (which uses a dash and an underscore), ignores spaces and line breaks, and adds missing padding for you.
What Base64 is used for
- Email attachments: email systems use Base64 to carry files through text-only channels.
- Data URIs: small images and fonts can be embedded directly in web pages and style sheets.
- APIs and tokens: HTTP Basic authentication and the parts of a JSON Web Token are Base64 text.
- Config files and URLs: binary or special characters can be stored as plain, safe text.
Base64 is not encryption
Anyone can decode Base64 in a second, including with this tool. It hides nothing, so never use it to protect passwords, personal data or secrets. Use real encryption for that. Base64 also makes data about one third larger, which is the price of using only safe characters.
Why do I see Invalid Base64?
- The text contains characters that are not part of Base64.
- Part of the text was cut off when you copied it.
- The data is not text, for example an image or a file. This tool decodes text only, so it cannot show binary data.
Frequently asked questions
What does the equals sign at the end mean?
It is padding. Base64 works in groups of four characters, and one or two equals signs fill the last group when the data does not divide evenly.
What is URL-safe Base64?
A variant that swaps the plus and slash characters for a dash and an underscore, so the text can be used safely inside web addresses.
Can I encode an image or a file?
This tool works with text only. Image and file encoding is not supported here.
Is my text stored or sent anywhere?
No. The conversion happens in your browser and your text never leaves your device.
More free tools
Typing Speed Test
Test your typing speed in WPM with timed and word-count tests.
Word Counter
Count words, characters, sentences and reading time instantly.
Case Converter
Convert text to uppercase, lowercase, title case and more.
Click Speed Test
Measure your clicks per second (CPS) in 5 or 10 seconds.