Number Base Converter

New

Convert numbers between binary, octal, decimal, hexadecimal, base 32, and base 64.

Free Forever
No Signup Required
No Files Stored

Embed this tool

Add this tool to your website or blog with a single iframe snippet.

<iframe src="https://www.dukotools.com/tools/number-base-converter?embed=1" width="100%" height="600" frameborder="0" allow="clipboard-write" loading="lazy" title="number-base-converter tool"></iframe>

About Number Base Converter

Number Base Converter converts numbers between binary, octal, decimal, hexadecimal, base32, and base64 representations instantly and bidirectionally. It also shows the two's complement (signed) representation for a chosen bit width and flags overflow when a value does not fit in the selected bit length, making it useful for both quick base conversions and understanding how signed integers are actually stored.

Key Features

  • Six number bases

    Convert between binary, octal, decimal, hexadecimal, base32, and base64 simultaneously.

  • Two's complement view

    See the signed two's complement representation of a value at a chosen bit width (8/16/32/64-bit).

  • Overflow detection

    Flags when a value does not fit within the selected bit length for signed representation.

  • Grouped binary display

    Binary output is grouped into readable nibbles/bytes rather than one long digit string.

  • Large integer support

    Handles arbitrarily large integers via BigInt, not limited to 32/64-bit JS number precision.

How to Use

  1. 1

    Enter a value

    Type a number in any supported base (binary, octal, decimal, hex, base32, or base64).

  2. 2

    Read the conversions

    See the same value instantly converted into every other base.

  3. 3

    Check the bit representation

    Select a bit width to see the two's complement (signed) representation and check for overflow.

  4. 4

    Copy what you need

    Copy any of the converted values for use elsewhere.

Real-World Use Cases

Debugging a bitwise operation

A developer converts a hex flag value to binary to see exactly which bits are set before writing a bitmask check.

Understanding signed overflow

A student converts a value at 8-bit width to see the overflow warning and understand why a byte cannot hold a given number as signed.

Encoding a value for a spec

An engineer converts a decimal ID into base32 to match a specific protocol's encoding requirement.

Frequently Asked Questions

Related Free Tools