Encode and decode text in five formats — URL percent-encoding, HTML entities, Unicode escapes (\uXXXX), hexadecimal and binary — and convert files to and from Base64. Choose Encode or Decode and the type, and the result appears as you type. Base64 works with files: turn any file into a Base64 string, or turn a Base64 string back into a file, with a preview for images.
- What does URL encoding do?
- It works like JavaScript's encodeURIComponent: every character except A–Z, a–z, 0–9 and - _ . ! ~ * ' ( ) is converted to %XX using UTF-8, and a space becomes %20. Decoding reverses it, and an invalid % sequence shows an error.
- Which characters does HTML encoding convert?
- Five: & < > " and ' become & < > " and '. That is enough to show text safely inside HTML. Decoding converts back only these five; other entities such as or あ are left as they are.
- What are the Unicode, Hex and Binary formats?
- All three work on Unicode code points, one per character. Unicode writes \u plus at least 4 hex digits (あ becomes \u3042), Hex writes space-separated hex values (A becomes 41, あ becomes 3042), and Binary writes space-separated base-2 values of at least 8 digits (A becomes 01000001). Hex and Binary are code points, not UTF-8 bytes, so for non-ASCII text they differ from a byte dump.
- Are emoji supported?
- URL, HTML, Hex and Binary handle them. In Unicode mode, characters beyond U+FFFF such as emoji are written with 5 hex digits, which the decoder (it reads exactly 4 digits) cannot read back.
- How do I Base64-encode text?
- In this tool Base64 is for files: in Encode mode the box shows the Base64 of the file you choose and cannot be typed into. To encode text, save it as a .txt file and choose that file.
- What happens when I decode Base64?
- The string is turned back into a file. PNG, JPEG, GIF, WebP, PDF and ZIP are recognised from their first bytes, images are shown as a preview, and other data is saved as .bin. Paste the Base64 only, without a “data:…;base64,” prefix.
- Is encoding the same as encryption?
- No. Base64, URL encoding and the other formats can be reversed by anyone. Use them to move data safely through URLs, HTML or text-only channels, not to hide it.
- Is it safe for sensitive data?
- Encoding, decoding and reading files all run in your browser and nothing is uploaded. Short input is also kept in the page URL, so it can remain in your browser history.