One number in, all four bases out — binary, octal, decimal and hexadecimal — with strict digit validation and bit-length analysis.
Valid digits in decimal: 0–9
Binary (base 2)
1011 0101
Octal (base 8)
265
Decimal (base 10)
181
Hexadecimal (base 16)
B5
Bit length
8 bits
Bytes needed
1 byte
Fits in
uint8
Every other base is shorthand for binary. Octal groups bits in threes, hex in fours — the value never changes, only the notation.
Each hex digit is exactly one nibble (4 bits): B5 = 1011 0101. Colours, memory addresses and UUIDs all reward this reading skill.
005 and 5 are the same number in any base. Leading zeros only matter when a protocol demands fixed width — like 8-digit hex colours.
Paste or type the value — the 0x prefix is stripped automatically for hex.
Pick binary, octal, decimal or hexadecimal. Switching base loads a valid example.
Every representation appears at once — binary is grouped in nibbles for easy reading.
Bit length, byte count and the smallest fitting unsigned integer type.
Whole numbers only, exact up to 2⁵³−1 — fractions and larger values are rejected rather than misconverted.
Converters
Convert area instantly between square metres, square feet, square miles, acres and hectares with exact factors.
Converters
Convert any file to Base64 in your browser — up to 25 MB, with chunked output, file size info, copy and download. Text encoding too. Free, no signup.
Converters
Convert text between UPPER CASE, lower case, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case. Free, instant, private.
Converters
Convert any colour between HEX, RGB and HSL — paste one format, get them all, with a live preview and one-click copy. Free, no sign-up. Your input is processed in your browser and is not stored by us.
Converters
Convert cups to grams with ingredient-specific densities (flour, sugar, rice, water and more), plus tablespoons and teaspoons to millilitres.
Need a custom tool?
We build calculators and internal tools for businesses — get in touch.
Directory last updated 2 December 2026.
Disclaimer: conversions are exact only up to 2⁵³−1. Values beyond that are rejected — never silently rounded.