Base64, HTML Entities & Encoding Tools
Web development involves constant encoding and decoding — embedding images as Base64, escaping HTML special characters, encoding URL parameters. These tools handle the conversions that developers look up or script multiple times per week.
Base64 encoding converts binary data to ASCII text, making it safe to embed in HTML, CSS, JSON, and email. The most common use case in web development is data URIs — embedding small images directly in CSS as background-image: url(data:image/png;base64,...) to eliminate an HTTP request.
HTML entities replace characters that have special meaning in HTML — like < (less-than), > (greater-than), & (ampersand), and " (quotation mark) — with safe escape sequences. This prevents XSS vulnerabilities when displaying user input and ensures special characters render correctly.
URL encoding (percent-encoding) makes text safe for use in URLs. Spaces become %20, ampersands become %26, and non-ASCII characters are encoded as UTF-8 byte sequences. The tool handles both full URL encoding (preserving structural characters like ://) and component encoding (encoding everything for use inside query parameters).
How We Tested These Tools
Encoding tools are only useful if they are byte-exact, so each was compared with a standard library implementation. Scripts and results are in our test folder.
| Tool | Test (reference) | Result |
|---|---|---|
| Hash Generator | MD5 against Python hashlib on 12 inputs incl. empty string, emoji, block boundaries and 1 MB | 12 of 12 identical (the previous MD5 was wrong for every input); SHA family already matched. |
| Base64 Tool | Text and a 3,000-byte file, standard and URL-safe, against Python base64 | 4 of 4 identical; non-UTF-8 bytes (a PNG header) decode to an exact-bytes download instead of an error. |
| HTML Entity Encoder | Decoding 12 tricky strings against Python html.unescape; 25 encode/decode round trips | 12 of 12 and 25 of 25; all 2,231 named references understood. |
| JWT Decoder | 6 test tokens incl. non-ASCII claims, alg none, millisecond exp and an encrypted (JWE) token | José Müller decoded intact; none/ms/expired flagged; JWE refused. |
If you find an input where one of these disagrees with your language's standard library, that is a bug — tell us and we will add it to the test set.