Home › Developer Tools › Binary to Hex Converter

Binary to Hex Converter

Paste a binary number and get the hexadecimal equivalent instantly. The working shows how the bits are split into 4-bit groups (nibbles), each of which becomes one hex digit.

Last updated:

Examples

Step-by-step conversion

    Advertisement
    Advertisement

    How to use the Binary to Hex Converter

    1. Type a binary number in the left box. The hex result appears instantly.
    2. Need the other direction? Type in the right box, or press ⇄ to swap.
    3. Working with negative numbers? Choose a signed two's complement bit width.
    4. Read the steps below the result to see exactly how the conversion works.
    5. Copy the result with one click.

    Hex and binary nibble chart

    Every hex digit corresponds to one nibble (4 bits). Memorise this table and you can convert between hex and binary in your head.

    HexBinaryDecimal
    000000
    100011
    200102
    300113
    401004
    501015
    601106
    701117
    810008
    910019
    A101010
    B101111
    C110012
    D110113
    E111014
    F111115

    Decimal, hex and binary table (0–255)

    All values that fit in one byte. Use Ctrl+F to find a value quickly.

    DecimalHexBinary (8-bit)
    0000000000
    1100000001
    2200000010
    3300000011
    4400000100
    5500000101
    6600000110
    7700000111
    8800001000
    9900001001
    10A00001010
    11B00001011
    12C00001100
    13D00001101
    14E00001110
    15F00001111
    161000010000
    171100010001
    181200010010
    191300010011
    201400010100
    211500010101
    221600010110
    231700010111
    241800011000
    251900011001
    261A00011010
    271B00011011
    281C00011100
    291D00011101
    301E00011110
    311F00011111
    322000100000
    332100100001
    342200100010
    352300100011
    362400100100
    372500100101
    382600100110
    392700100111
    402800101000
    412900101001
    422A00101010
    432B00101011
    442C00101100
    452D00101101
    462E00101110
    472F00101111
    483000110000
    493100110001
    503200110010
    513300110011
    523400110100
    533500110101
    543600110110
    553700110111
    563800111000
    573900111001
    583A00111010
    593B00111011
    603C00111100
    613D00111101
    623E00111110
    633F00111111
    644001000000
    654101000001
    664201000010
    674301000011
    684401000100
    694501000101
    704601000110
    714701000111
    724801001000
    734901001001
    744A01001010
    754B01001011
    764C01001100
    774D01001101
    784E01001110
    794F01001111
    805001010000
    815101010001
    825201010010
    835301010011
    845401010100
    855501010101
    865601010110
    875701010111
    885801011000
    895901011001
    905A01011010
    915B01011011
    925C01011100
    935D01011101
    945E01011110
    955F01011111
    966001100000
    976101100001
    986201100010
    996301100011
    1006401100100
    1016501100101
    1026601100110
    1036701100111
    1046801101000
    1056901101001
    1066A01101010
    1076B01101011
    1086C01101100
    1096D01101101
    1106E01101110
    1116F01101111
    1127001110000
    1137101110001
    1147201110010
    1157301110011
    1167401110100
    1177501110101
    1187601110110
    1197701110111
    1207801111000
    1217901111001
    1227A01111010
    1237B01111011
    1247C01111100
    1257D01111101
    1267E01111110
    1277F01111111
    1288010000000
    1298110000001
    1308210000010
    1318310000011
    1328410000100
    1338510000101
    1348610000110
    1358710000111
    1368810001000
    1378910001001
    1388A10001010
    1398B10001011
    1408C10001100
    1418D10001101
    1428E10001110
    1438F10001111
    1449010010000
    1459110010001
    1469210010010
    1479310010011
    1489410010100
    1499510010101
    1509610010110
    1519710010111
    1529810011000
    1539910011001
    1549A10011010
    1559B10011011
    1569C10011100
    1579D10011101
    1589E10011110
    1599F10011111
    160A010100000
    161A110100001
    162A210100010
    163A310100011
    164A410100100
    165A510100101
    166A610100110
    167A710100111
    168A810101000
    169A910101001
    170AA10101010
    171AB10101011
    172AC10101100
    173AD10101101
    174AE10101110
    175AF10101111
    176B010110000
    177B110110001
    178B210110010
    179B310110011
    180B410110100
    181B510110101
    182B610110110
    183B710110111
    184B810111000
    185B910111001
    186BA10111010
    187BB10111011
    188BC10111100
    189BD10111101
    190BE10111110
    191BF10111111
    192C011000000
    193C111000001
    194C211000010
    195C311000011
    196C411000100
    197C511000101
    198C611000110
    199C711000111
    200C811001000
    201C911001001
    202CA11001010
    203CB11001011
    204CC11001100
    205CD11001101
    206CE11001110
    207CF11001111
    208D011010000
    209D111010001
    210D211010010
    211D311010011
    212D411010100
    213D511010101
    214D611010110
    215D711010111
    216D811011000
    217D911011001
    218DA11011010
    219DB11011011
    220DC11011100
    221DD11011101
    222DE11011110
    223DF11011111
    224E011100000
    225E111100001
    226E211100010
    227E311100011
    228E411100100
    229E511100101
    230E611100110
    231E711100111
    232E811101000
    233E911101001
    234EA11101010
    235EB11101011
    236EC11101100
    237ED11101101
    238EE11101110
    239EF11101111
    240F011110000
    241F111110001
    242F211110010
    243F311110011
    244F411110100
    245F511110101
    246F611110110
    247F711110111
    248F811111000
    249F911111001
    250FA11111010
    251FB11111011
    252FC11111100
    253FD11111101
    254FE11111110
    255FF11111111

    Frequently asked questions

    How do you convert binary to hex?

    Split the bits into groups of four from the right, padding the leftmost group with zeros, then replace each group with its hex digit. 110110101 → 0001 1011 0101 → 1B5.

    Why does 4 bits make one hex digit?

    Four bits can represent 2⁴ = 16 values (0000 to 1111), exactly the 16 hex digits 0-F. That is why hex is used as shorthand for binary.

    What is 11111111 in hex?

    11111111 is FF: two groups of 1111, each F.

    Do I need to pad with zeros?

    No. The converter pads automatically. Leading zeros do not change the value.

    Can I convert long bit strings?

    Yes. Any length works, and spaces or underscores between groups are ignored.

    What about the signed mode?

    In two's complement mode the bit pattern is kept as is and padded to the chosen width, so the hex shows the same bits. The decimal card shows the signed value.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    Hex to BinaryConvert hex to binary instantly with steps and signed mode.Number Base ConverterConvert numbers between any bases from 2 to 36, with fractions and steps.Hex to DecimalConvert hex to decimal instantly with steps and signed mode.Binary TranslatorConvert text to binary, hex, octal and back.Checksum CalculatorCompute 8-bit sum, two's complement LRC, XOR/BCC, NMEA, Fletcher and Internet checksums of bytes.Endianness ConverterSwap byte order of 16, 32 and 64-bit hex values and see big- and little-endian integers and floats.Hex CalculatorHexadecimal + − × ÷ and AND, OR, XOR, NOT, shifts with decimal and binary equivalents.Password GeneratorCreate strong passwords and passphrases.Hash GeneratorGenerate MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.MD5 Hash GeneratorGenerate MD5 hashes of text, lines or files and verify checksums.SHA-256 Hash GeneratorSHA-256 and HMAC-SHA256 hashes of text, lines or files, in hex or Base64.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.HTML Entity Encoder / DecoderEscape and unescape HTML entities, named or numeric.Bcrypt Hash Generator & CheckerCreate bcrypt password hashes and check a password against a hash.HMAC GeneratorGenerate and verify HMAC signatures with SHA-256, SHA-512, SHA-1 or MD5.CRC32 Checksum CalculatorCalculate CRC-32, CRC-32C, CRC-16 and Adler-32 checksums of text or large files.JWT DecoderDecode JSON Web Tokens, read the claims and expiry, and verify HS256 signatures.JWT GeneratorCreate and sign HS256, HS384 or HS512 JSON Web Tokens in your browser and verify them.Password Strength CheckerSee how strong a password really is, how long it takes to crack and how to improve it.Caesar CipherEncode and decode Caesar shift ciphers and crack unknown shifts with a ranked brute force.Vigenère CipherEncrypt and decrypt Vigenère and Autokey ciphers, and crack unknown keys with frequency analysis.Atbash CipherEncode and decode Atbash ciphers (A↔Z, B↔Y) in Latin or Hebrew, with a live letter mapping table.ASCII TableFull ASCII code chart 0–255 in decimal, hex, octal, binary and HTML, with search and copy.Unicode Character LookupFind Unicode characters by name or code point and copy them with UTF-8, HTML and code escapes.Punycode ConverterConvert international domain names, emails and URLs between Unicode and xn-- Punycode, in bulk.JSON Escape / UnescapeEscape text for a JSON string, unescape \n and \" back to text, or stringify a whole object.Binary CalculatorAdd, subtract, multiply, divide, AND, OR, XOR and shift binary numbers with decimal values.Base32 Encoder / DecoderEncode and decode Base32 (RFC 4648), Base32hex, Crockford and z-base-32 from text, hex or files.Base58 Encoder / DecoderEncode and decode Base58 and Base58Check (Bitcoin alphabet) from text or hex, with checksum verification.Unicode Escape / UnescapeConvert text to \uXXXX, \u{...}, \x, &#...; or CSS escapes and decode them back.File Hash CheckerGet MD5, SHA-1, SHA-256 and SHA-512 checksums of files and verify them against a hash.TOTP GeneratorGenerate 2FA one-time codes from a secret key, create otpauth QR codes and verify codes.RSA Key GeneratorGenerate 2048, 3072 or 4096-bit RSA key pairs as PEM, PKCS#1, JWK or OpenSSH, locally.SSL Certificate DecoderDecode PEM SSL/X.509 certificates: subject, issuer, expiry, SANs, key and fingerprints.Text Encryption ToolEncrypt and decrypt text with a password using AES-256-GCM, entirely in your browser.Argon2 Hash GeneratorHash passwords with Argon2id, Argon2i or Argon2d and verify them against an encoded hash.Base64 to PDFDecode a Base64 string to a PDF with preview and download, or encode a PDF to Base64.File Encryption ToolEncrypt and decrypt any file with a password using AES-256-GCM, entirely in your browser.Passphrase GeneratorMake strong, memorable diceware passphrases from a 7,776-word list, with entropy in bits.CSR DecoderDecode a PEM certificate signing request: subject, SANs, key size, signature and CA readiness checks.Enigma Machine SimulatorEncrypt and decrypt with a virtual Enigma I, M3 or M4: rotors, rings, plugboard and lampboard.Hex Opacity CalculatorConvert opacity percent to a 2-digit HEX alpha code and full #RRGGBBAA color, with a 0-100% table.Playfair CipherEncrypt and decrypt Playfair ciphers from a keyword, with the 5x5 key square and every digraph step.Pwned Password CheckerCheck if a password appeared in data breaches; only 5 characters of its SHA-1 hash are sent.RSA Encryption ToolEncrypt text with an RSA public key and decrypt it with the private key using RSA-OAEP in your browser.SAML DecoderDecode SAMLRequest and SAMLResponse messages to readable XML, attributes and validity times.SSL Certificate ConverterConvert SSL certificates and keys between PEM, DER, PFX/P12 and P7B in your browser.PBKDF2 Hash GeneratorDerive PBKDF2 keys from a password, salt and iteration count with SHA-1, SHA-256 or SHA-512.Protobuf DecoderDecode raw Protocol Buffers hex or Base64 without a schema, or add a .proto for field names.XML Escape / UnescapeEscape & < > " ' for XML text and attributes, unescape entities back, or wrap text in CDATA.Binary Search Tree VisualizerInsert, delete and find in BST, AVL and red-black trees with animated rotations and traversals.Bitwise CalculatorCalculate AND, OR, XOR, NOT and bit shifts at 8–64 bits with a bit grid and all bases.CSR GeneratorCreate a certificate signing request (CSR) and private key with SANs, RSA or ECDSA, in your browser.MongoDB ObjectId to TimestampDecode a MongoDB ObjectId to its creation date, or build ObjectIds from dates for range queries.PGP Encrypt / DecryptEncrypt, decrypt, sign and verify PGP messages with your armored keys, entirely offline.PGP Key GeneratorGenerate an OpenPGP key pair (Curve25519, NIST ECC or RSA) with passphrase and expiry, offline.Quoted-Printable Encoder / DecoderEncode or decode quoted-printable email text (MIME) with UTF-8 and 76-character soft line breaks.Self-Signed Certificate GeneratorCreate a self-signed SSL certificate and key for localhost or dev servers, as PEM or PFX.SHA-1 Hash GeneratorSHA-1 and HMAC-SHA1 of text or files in hex or Base64, plus Git blob hashes and verify.SHA-512 Hash GeneratorSHA-512 and SHA-384 hashes of text or files in hex or Base64, HMAC and hash verification.SRI Hash GeneratorCreate Subresource Integrity hashes (sha256/384/512) and ready <script> or <link> tags.SSH Key GeneratorGenerate Ed25519 or RSA SSH key pairs in your browser: OpenSSH public key plus private key.String Escape / UnescapeEscape or unescape strings for JavaScript, Java, C#, Python, C, SQL, regex, CSV and shell.UTF-8 Encoder / DecoderConvert text to UTF-8 bytes in hex, decimal, binary, \x or % and decode bytes back to text.UUID Decoder & ValidatorDecode any UUID: version, variant, v1/v6/v7 timestamp and MAC node, plus bulk validation.Base64 to FileDecode Base64 or a data URI to a downloadable file; detects the real file type and previews it.
    See all 65 Encoders, Hashes & Crypto →