Developer Tools

Number Base Converter

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

Quick Reference

Decimal: 0-9 (Base 10)
Binary: 0-1 (Base 2)
Octal: 0-7 (Base 8)
Hexadecimal: 0-9, A-F (Base 16)

Example: 255
Binary: 11111111
Octal: 377
Hex: FF

FAQ

What is binary?

Binary (base-2) uses only 0 and 1. It's how computers represent all data internally. Each digit is a "bit".

When is hexadecimal used?

Hex is commonly used in programming for colors (#FF0000), memory addresses, and representing bytes compactly (one byte = two hex digits).

What about negative numbers?

This tool converts positive integers only. Negative numbers use two's complement in binary, which is more complex.

Related tools