Loading...
Loading...
Convert between binary, decimal, hexadecimal, octal, ASCII, and plain text. Fourteen free tools covering every common number base conversion used in programming, networking, and electronics.
Convert binary (base-2) to decimal (base-10)
Convert binary to hexadecimal
Convert binary to octal (base-8)
Decode binary to ASCII text
Convert decimal to hexadecimal
Convert decimal to octal
Convert hexadecimal to binary
Convert hexadecimal to octal
Convert octal to binary
Convert octal to decimal
Convert octal to hexadecimal
Encode ASCII text to binary
Convert text to ASCII code values
Convert ASCII codes to text
Computers store and process all data as binary — sequences of 0s and 1s. Humans find large binary strings difficult to read, so programmers use shorthand representations: hexadecimal (base-16) and octal (base-8) both map cleanly onto binary, with each hex digit representing exactly four binary bits and each octal digit representing three bits.
Decimal (base-10) is what people use in everyday arithmetic. Converting between these bases is a routine task in software development, hardware engineering, digital signal processing, and network administration. These tools handle multi-line input so you can convert batches of values at once.
Memory addresses and debugging. Debuggers and disassemblers display memory addresses in hexadecimal. Converting a hex address to binary shows which individual bits are set — useful when working with hardware registers or bitfield structures.
Network masks and IP addresses. IPv4 subnet masks like 255.255.255.0 are expressed as binary patterns. The decimal-to-binary converter lets you verify that a mask like /24 corresponds to 24 consecutive 1-bits.
Color codes in web development. CSS hex colors like #FF6B00 are two-digit hexadecimal values for each RGB channel. The hex-to-decimal converter gives you the individual channel values (255, 107, 0) when you need them for JavaScript or CSS calculations.
ASCII encoding and decoding. The text-to-ASCII and ASCII-to-text converters are useful when reading raw protocol data, working with character encoding, or checking what decimal or binary value a specific character has.
Each converter accepts one or more values in the input box — paste a list with one value per line and all values convert together. The output appears immediately without clicking a button, though you can also click Convert to re-run if you have edited the input.
All conversions run in your browser using JavaScript's built-in number parsing and formatting functions. Binary input is parsed with parseInt(value, 2), hexadecimal with base 16, and octal with base 8. For text and ASCII conversions, each character is processed using charCodeAt() and String.fromCharCode().
What is the difference between hex and binary?
Binary (base-2) uses only 0 and 1. Hexadecimal (base-16) uses 0-9 and A-F, where A=10 and F=15. One hex digit equals exactly four binary bits, so hex is a compact way to write binary values. The byte 11001010 in binary is CA in hex.
Can I convert multiple values at once?
Yes. Paste one value per line into the input box and the converter processes each line independently, returning one converted value per line in the output.
Do these tools handle negative numbers?
The converters handle positive integers. Negative numbers in binary require knowledge of the word size and two's complement representation, which varies by system. For signed integer conversion, use a language-specific tool.