About Base64 Encode/Decode
Base64 turns binary data into plain text so it can travel safely in emails, URLs, JSON and data URIs. Encode text or a small file, or decode a Base64 string back into readable text. Full UTF-8 support means emoji and accented characters work correctly.
How to use Base64 Encode/Decode
- Choose "Encode" or "Decode".
- Type or paste your text, or choose a file to encode.
- Tick "URL-safe" if the result will be used in a URL.
- Copy the output or download it.
Tips
- Data URIs for small images look like data:image/png;base64,... and can be pasted straight into CSS or HTML.
- Base64 makes data about 33% larger, so it is best for small pieces of data rather than big files.
- JWT tokens use URL-safe Base64; you can decode their middle part here to read the claims.
- If decoding fails, check for missing characters at the end or accidental line breaks in the string.