Binary Hex Decimal Converter

Binary Hex Decimal Converter

Convert between binary, hexadecimal, and decimal number systems

binary
hex
decimal
Share this tool:
Quick Presets
Common values for quick conversion
Input & Settings
Select an input base, enter a value, and convert to all representations.
How it works: Enter a number in binary (0s and 1s), hexadecimal (0-9, A-F), or decimal (0-9) and convert it to all three representations instantly.

What is Number Base Converter?

The Number Base Converter transforms numbers between binary, hexadecimal, and decimal numeral systems. You type a number in any one of the three formats and the tool instantly shows the equivalent in the other two. It validates input to ensure only valid characters are used for each base. All processing happens in the browser.

How does Number Base Converter work?

This tool uses JavaScript's parseInt and toString methods to convert between bases. Binary accepts only 0 and 1. Hexadecimal accepts 0-9 and A-F (case-insensitive). Decimal accepts 0-9. The tool converts any input to the other two formats in real time.

Key Features

  • Converts between binary, hex, and decimal
  • Bidirectional: type in any field
  • Real-time conversion as you type
  • Input validation with error messages
  • Copy any value to clipboard
  • Supports large numbers up to 2^53-1
  • Runs in the browser with no uploads
  • Quick example presets

Common Use Cases

When and why you might need this tool
  • Converting hex color codes to decimal

    Convert a hex color value like FF5733 to decimal RGB values for use in code.

  • Working with memory addresses

    Convert a hex memory address to binary for low-level debugging or assembly programming.

  • Learning number systems

    Practice converting between binary, hex, and decimal for a computer science course.

  • Inspecting binary data

    Convert a binary value from a logic circuit diagram to hex for easier reading.

How to Use This Tool

Step-by-step guide to get the best results
1

Enter a number

Type a value in any of the three fields: binary, hex, or decimal.

2

View conversions

The other two fields update instantly with the converted values.

3

Copy a value

Click the copy button next to the value you need.

Pro Tips

  • 1

    Binary uses only 0 and 1. Hex uses 0-9 and A-F.

  • 2

    Each hex digit represents 4 binary bits, so 0xFF is 11111111 in binary.

  • 3

    The tool supports numbers up to JavaScript's maximum safe integer (2^53-1).

  • 4

    Hex values are case-insensitive: 'a' and 'A' are treated the same.

Frequently Asked Questions

What number bases are supported?

The converter supports binary (base-2), hexadecimal (base-16), and decimal (base-10). These are the three most common bases in programming and computer science.

What is the maximum number I can convert?

The tool supports numbers up to JavaScript's maximum safe integer, which is 9,007,199,254,740,991 in decimal.

Is my input sent to a server?

No. All conversion happens in your browser using JavaScript. Nothing is transmitted.

Can I convert negative numbers?

The tool currently supports positive integers only. Negative numbers and floating-point values require different conversion approaches.

Why do programmers use hexadecimal?

Hex is more compact than binary. Each hex digit represents 4 bits, making it easier to read and write long binary numbers. It is commonly used for memory addresses, color codes, and encoded data.