About this tool

Convert between binary, octal, decimal and hexadecimal.

The Base Converter shows all four positional numeral system representations simultaneously. Type in any field — binary (base 2), octal (base 8), decimal (base 10), or hexadecimal (base 16) — and all others update instantly. Essential for developers working with bitwise operations, memory addresses, colour codes and network subnet calculations.

Example

255 (decimal)FF (hex) · 11111111 (binary) · 377 (octal)

How to use
  1. Type a number in any field (binary, octal, decimal or hex).
  2. All other representations update automatically.
  3. Copy any field with one click.
  4. Use the clear button to start fresh.
Features
  • Binary, octal, decimal and hexadecimal simultaneously
  • Instant two-way conversion
  • Hex input accepts A–F and a–f
  • Works up to JavaScript's safe integer range
  • Shows bit width
Frequently Asked Questions
How do I convert 255 decimal to hex?+
Type 255 in the decimal field. Hex shows FF, binary shows 11111111, octal shows 377.
What is the maximum number supported?+
The tool accurately converts integers up to 253 − 1 (9,007,199,254,740,991) — JavaScript's safe integer limit.
Are negative numbers supported?+
Not in this version. The converter handles non-negative integers only.
What is hexadecimal used for?+
Hex is used in colour codes (#FF0000), memory addresses, byte values, IPv6 addresses and low-level programming constants.
Why do programmers use hexadecimal?+
Hex maps cleanly to binary — each hex digit represents exactly 4 bits. A byte (8 bits) is always 2 hex digits, making memory addresses and colour values easy to read.
What is the difference between binary and hex?+
Binary uses 0 and 1 (base 2). Hex uses 0–9 and A–F (base 16). Hex is shorthand for binary: 1111 = F, 1010 = A.

Base Converter

← All tools
Loading…
Related tools
Roman Numeral Converter Hash Generator Calculator
Also available in: 🇪🇸 Español🇮🇳 हिन्दी