Number Base Converter
Binary, Hex & More
Convert numbers between decimal, hexadecimal, octal, and binary with prefixed outputs you can copy instantly.
What is this tool?
This number base converter translates integers between base 10, base 16, base 8, and base 2. These bases show up constantly in programming: decimal for human-facing quantities, hexadecimal for bytes and memory values, octal for permissions, and binary for flags.
The converter parses the input as an integer in the selected radix and renders equivalent values with familiar prefixes: 0x for hex, 0o for octal, and 0b for binary. It is not intended for floating-point conversion, signed integer overflow analysis, or IEEE 754 bit inspection.
Use it when checking masks, protocol values, permissions, color channels, or constants that move between human-readable and machine-oriented notation.
How to use
- Choose the base of the input value: decimal, hexadecimal, octal, or binary.
- Enter an integer. Common prefixes such as
0x,0o, and0bare accepted. - Read the converted values in all four supported bases.
- Copy the representation you need for code, documentation, permissions, or debugging.
Examples
| Input / setting | Output | Notes |
|---|---|---|
255 decimal | decimal 255; hex 0xff; octal 0o377; binary 0b11111111 | A full 8-bit byte. |
0b1010 binary | decimal 10; hex 0xa; octal 0o12; binary 0b1010 | A small bit-mask style value. |
755 octal | decimal 493; hex 0x1ed; octal 0o755; binary 0b111101101 | Common Unix permission notation. |
Related tools & concepts
Last reviewed: 2026-05-08