Hexadecimal writes each byte as two characters from 0-9 and a-f. Converting text to hex helps when inspecting binary data, debugging protocols or reading memory dumps, and decoding turns a hex string back into text.
Common uses
- Decoding a Base64 value found in a header or config file
- Percent-encoding a query parameter that contains spaces or symbols
- Embedding a small image in CSS or HTML as a data URI
Frequently asked questions
- Why are some characters more than two hex digits?
- Non-ASCII characters are several bytes in UTF-8, and each byte takes two digits.
- Does case matter?
- No. A-F and a-f represent the same values.