About online radix conversion
Convert whole integers between bases 2–36—binary, octal, decimal, hex, and letter digits for bases above 10.
Handy for bit masks, color channels, exam practice, and checking calculator results.
Online Radix converter capabilities
Positional notation
Each digit position represents a power of the base. For example, hex digit A means ten × base¹, not the letter “A” as text.
Bases 2–36
- Digits 0–9 for values zero through nine.
- Letters a–z (case-insensitive input) for ten through thirty-five in bases above 10.
- Optional 0x prefix on input is ignored when converting from hex—paste FF or 0xFF.
Quick reference
- Decimal 255 → binary 11111111 → hex FF (one byte).
- Octal 377 equals decimal 255 (Unix file modes often shown in octal).
- Base 36 uses digits 0–9 and a–z; sometimes seen in short URL or ID encodings.
Big integers
Uses bigint arithmetic in the browser so long binary strings and large hex values stay exact—no floating-point rounding.
Common use cases
Flags & bit masks
Translate permission bits or register values between binary and hex when reading docs or dumps.
Colors & byte values
Confirm channel values (0–255) in decimal and hex when working with RGB or raw byte arrays.
Learning & interviews
Practice base conversion steps and verify homework without installing a desktop calculator.
Frequently asked questions
- What is hexadecimal used for in programming?
- Hex groups binary nibbles (4 bits) into one character, so memory addresses, color codes (#RRGGBB), MAC addresses, and hash digests are easier to read than long binary strings.
- Why does binary 11111111 equal decimal 255?
- Each bit is a power of two: 128+64+32+16+8+4+2+1 = 255. That pattern is one full byte (8 bits), often written as 0xFF in hex.
- Can I convert fractions or decimals?
- No—this tool handles integers only. Fractional values need rational or floating-point conversion, which is a different algorithm.
- Why might my result differ from a programming language?
- Check the sourc