See how text is represented as binary, hexadecimal and ASCII codes. This converter is handy for learning, debugging and low-level work.
It runs in your browser with instant results.
How to use the Binary / Hex Converter
- Type your text.
- See it as binary, hex and ASCII.
- Copy whichever output you need.
Binary, decimal and hex are the same numbers
They are three notations for one value: decimal 255 is binary 11111111 and hex FF. Hex is popular because it is compact binary: each hex digit represents exactly four bits, so one byte is always two hex digits. That is why memory addresses, colour codes and byte dumps are written in hex.
Values worth recognising
| Decimal | Binary | Hex |
|---|---|---|
| 8 | 1000 | 8 |
| 16 | 10000 | 10 |
| 32 | 100000 | 20 |
| 64 | 1000000 | 40 |
| 128 | 10000000 | 80 |
| 255 | 11111111 | FF |
| 256 | 100000000 | 100 |
Powers of two and 255 appear constantly in computing: 255 is the maximum of one byte, which is why RGB colour channels run 0 to 255 and IPv4 addresses cap each part at 255.
Common uses
- Reading hex colour codes and byte values
- Networking work with addresses and masks
- Computer science homework and exam practice
- Debugging low-level data and flags
Frequently asked questions
Is it free?
Yes, free with no signup.
Is my input uploaded?
No. Conversion runs in your browser.
What outputs are shown?
Binary, hexadecimal and decimal ASCII codes.
Can I convert long text?
Yes, though very long text produces long output.