Home Text Tools Math & Numbers Developer Date & Time Image Tools Blog
Math & Numbers Private & secure

Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal instantly.

—
Binary (base 2)
—
Octal (base 8)
—
Decimal (base 10)
—
Hexadecimal (base 16)

Convert numbers between any numeral bases: binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), or any custom base from 2 to 36. Essential for programmers, students, and anyone working with computer science concepts.

Features

Binary (Base 2)
Convert to/from 0s and 1s.
Octal (Base 8)
Convert to/from base-8 representation.
Decimal (Base 10)
Standard number system.
Hexadecimal (Base 16)
Convert to/from 0-9 and A-F notation.

Use Cases: When This Tool Helps

  1. Study for computer science exams

    Check binary, octal, and hex conversions while practicing for programming and networking tests.

    Read the guide →
  2. Read memory addresses and error codes

    Convert hex values from debuggers, crash logs, and Windows error codes to decimal.

  3. Work with colors and CSS

    Convert hex color channels like FF or 80 to decimal 255 or 128 and back.

  4. Configure networks and subnets

    Convert IP octets and subnet masks to binary to understand CIDR ranges.

  5. Program microcontrollers

    Set register values and bit flags for Arduino and embedded projects in hex or binary.

  6. Explore unusual bases

    Convert to base 36 for short IDs or base 3 for math puzzles and teaching.

How to Convert Number Bases

  1. Enter your number in the source base field.
  2. Select the source base (e.g., Decimal).
  3. The equivalent values in all other bases appear instantly.

FAQ

Why do programmers use hexadecimal?▾

Hex is compact — one hex digit represents 4 bits, making it easier to read binary data like memory addresses and color codes.

What does 0xFF mean?▾

It's hexadecimal for 255 in decimal, or 11111111 in binary. Commonly used in color codes and bit masks.

Quick Reference

  • Decimal 255 = Binary 11111111
  • Decimal 255 = Hex FF
  • Decimal 255 = Octal 377
  • Hex colors use base 16: #FF5733

More Tools in This Category