Developer conversion tools
Binary Converter
Convert integers between binary, decimal, hexadecimal and octal, with two's complement bits for negative numbers and an ASCII reference table.
The calculator runs in your browser and keeps entered values local to the page.
ASCII Quick Reference
| Char | Dec | Hex | Binary | Char | Dec | Hex | Binary |
|---|---|---|---|---|---|---|---|
| Space | 32 | 20 | 00100000 | ! | 33 | 21 | 00100001 |
| 0 | 48 | 30 | 00110000 | 9 | 57 | 39 | 00111001 |
| A | 65 | 41 | 01000001 | Z | 90 | 5A | 01011010 |
| a | 97 | 61 | 01100001 | z | 122 | 7A | 01111010 |
| \n | 10 | A | 00001010 | \t | 9 | 9 | 00001001 |
| @ | 64 | 40 | 01000000 | # | 35 | 23 | 00100011 |
| $ | 36 | 24 | 00100100 | % | 37 | 25 | 00100101 |
| & | 38 | 26 | 00100110 | * | 42 | 2A | 00101010 |
Base conversion
Move between base 2, base 8, base 10, and base 16 without manual arithmetic.
Signed integers
Check negative values with two's complement bit patterns.
ASCII reference
Look up the decimal, hex and binary codes of common ASCII characters.
Number Base Reference
Binary
Binary uses digits 0 and 1. Each position represents a power of two, which maps directly to bits in memory and protocols.
Hexadecimal
Hex uses digits 0-9 and A-F. One hex digit represents four bits, so it is compact for byte values and memory addresses.
Octal
Octal uses digits 0-7 and still appears in Unix permissions, where modes such as 755 map to read, write, and execute flags.
Validation
Invalid digits are rejected for the selected base, so decimal-only, hex-only, and binary-only inputs stay clear.
FAQ
Which number bases are supported?
Binary, octal, decimal and hexadecimal integers of any size (0x, 0b and 0o prefixes are accepted). Negative numbers are also shown as two's complement bits. An ASCII reference table is included; text conversion is not.
Does the conversion happen locally?
Yes. Values are converted in your browser and are not sent to a server.
What is two's complement?
Two's complement is the standard binary representation for signed integers. It makes addition and subtraction work consistently for negative values.
Can I use this for programming and debugging?
Yes. It is useful for bit masks, color values, file permissions, protocol debugging, and checking base conversions while coding.