FreeDev Tools

Number Base Converter

Convert numbers between Binary, Octal, Decimal, and Hexadecimal in real time.

The Number Base Converter lets you instantly translate integers between the four most common numeral systems used in computing: binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Edit any field and all others update live.

Frequently Asked Questions

What number range is supported? +

The tool supports integers within JavaScript's safe integer range (up to 2^53 βˆ’ 1). For very large numbers, consider a BigInt-based tool.

Are negative numbers supported? +

Yes β€” prefix your decimal input with a minus sign. The binary, octal, and hex representations will also carry the minus prefix.

Why is hex input case-insensitive? +

Hexadecimal digits A–F can appear in either case. The tool accepts both and always outputs uppercase hex for consistency.

How to Use

  1. 1

    Enter a number

    Type a number in any base β€” binary, octal, decimal, or hexadecimal β€” into the corresponding field.

  2. 2

    See all conversions

    All four base representations update simultaneously as you type.

  3. 3

    Copy the result

    Click Copy next to the base you need β€” for example, hex for a color code or binary for bit manipulation.

Frequently Asked Questions

Binary (base-2), octal (base-8), decimal (base-10), and hexadecimal (base-16).