Number Base Converter

Convert whole numbers between binary, octal, decimal and hexadecimal — exact even for very large values — in your browser.

Suggested tools

Color Converter

Convert colours between HEX, RGB and HSL with a preview.

HEXRGBHSL
Open Tool

Timestamp Converter

Convert Unix timestamps (epoch) to dates and back.

EPOCH
Open Tool

Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes.

MD5SHA
Open Tool

Base64 Encode

Encode text, JSON or XML to Base64 (UTF-8 safe).

TEXTBASE64
Open Tool

UUID Generator

Generate one or many random version-4 UUIDs (GUIDs).

UUID
Open Tool

Case Converter

Convert text to UPPER, lower, Title, camel, snake, kebab case.

TEXT
Open Tool

About Number Base Converter

Number Base Converter converts whole numbers between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16), showing all four at once along with the number of bits. It is useful for programming, networking, electronics and computer-science homework.

It uses arbitrary-precision arithmetic, so very large numbers — 64-bit values, hashes, big IDs — convert exactly without rounding. Prefixes such as 0x, 0o and 0b, negative numbers, and underscores or spaces used as separators are all accepted. Everything runs locally in your browser — the text you paste is never uploaded.

How to use Number Base Converter

  1. Choose the base of your input number.
  2. Type the number — for example FF, 0b1010 or 255.
  3. Read the binary, octal, decimal and hex results and copy the one you need.

Key features

  • Binary, octal, decimal and hexadecimal
  • Exact results for very large numbers
  • Accepts 0x / 0o / 0b prefixes and separators
  • Shows the bit length

Example

Decimal
255
Output
Binary: 11111111
Octal: 377
Hex: FF
Bits: 8

When to use Number Base Converter

  • Converting hex colour or memory values to decimal.
  • Reading binary flags and bit masks.
  • Checking homework in computer science and digital electronics.

Tips and common problems

  • Prefixes 0x, 0o and 0b are understood automatically.
  • Underscores and spaces in long numbers are ignored, e.g. 1111_0000.
  • The bit count tells you the smallest integer type that can hold the value.

Frequently asked questions

No. It converts whole numbers (integers), which is what base conversion is normally used for in programming.