Binary Hex Converter
Free online binary hex converter tool, no installation required
About Binary / Hex Converter
This is a two-way converter between binary strings (only 0 and 1) and hexadecimal strings (0-9, A-F). The binary-to-hex direction strips spaces from the input, validates that every remaining character is 0 or 1, parses the value as base 2, and outputs the result as uppercase hex. The hex-to-binary direction validates the hex characters, parses as base 16, and outputs binary padded to a multiple of 8 bits and grouped with a space between each byte.
How to Use
1. For binary to hex, type your bit string into Binary Input (spaces are allowed and ignored), then press Binary to Hex and read the value in Hex Output. 2. For hex to binary, type your hex string into Hex Input (uppercase or lowercase both work), press Hex to Binary, and read the grouped binary result in Binary Output. 3. Use the Copy button next to either output to copy it to the clipboard. 4. Press Clear to reset all four fields.
Conversion Limits and Formatting
Both directions parse with JavaScript parseInt, so the input must represent an integer that fits inside the 53-bit safe-integer range (values up to about 9.007 * 10^15, roughly 53 binary bits or 13 hex digits); larger inputs lose precision. Binary input is validated with ^[01]+ after stripping whitespace; hex input is validated with ^[0-9A-Fa-f]+. The hex-to-binary output is left-padded with zeros to the next multiple of 8 bits and split into space-separated 8-bit groups (for example hex '1A' becomes '00011010').
▶Can I enter binary or hex with spaces and separators?
▶Why is the binary output padded and split into bytes?
▶Are uppercase and lowercase hex accepted?
▶Is my data sent to a server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee