How to use Base64 Encoder and Decoder
- Choose encode or decode.
- Paste your text or Base64 string.
- Copy the result.
About this tool
Base64 represents bytes using 64 printable characters, which is how binary data is embedded in JSON, emails and data URLs. This tool encodes text as UTF-8 first, so accented letters, emoji and other scripts survive a round trip.
URL-safe mode swaps + and / for - and _ and drops padding, matching the Base64URL format used in JWTs. Base64 is an encoding, not encryption, so do not use it to protect secrets.
Frequently Asked Questions
- Is Base64 secure?
- No. Anyone can decode it. It only changes how data is represented.
- Why does decoding fail?
- The input may contain characters outside the Base64 alphabet or decode to bytes that are not valid UTF-8 text.
Related tools
- URL Encoder and DecoderPercent-encode text for use in URLs, or decode an encoded string back to readable text.
- HTML Entity Encoder and DecoderEscape text for safe use in HTML, or turn entities back into readable characters.
- Morse Code TranslatorConvert English text to dots and dashes, or decode Morse back to text.
- Fancy Text GeneratorGenerate stylish Unicode text for Instagram bios, captions and usernames.
- Text to Binary ConverterSee the bytes behind your text, or decode bytes back into readable text.
- Readability Score CheckerFind out how easy your English writing is to read.