converters

Number Base Converter

convert integers across binary, octal, decimal, and hexadecimal formats

Live output enabled
Ready

About Number Base Converter

Number Base Converter translates integers across binary, octal, decimal, and hexadecimal so debugging flags, masks, and wire formats is faster.

Use Cases

  • Decode bitmasks and permission flags while troubleshooting system behavior.
  • Convert protocol fields between hexadecimal dumps and decimal values.
  • Verify binary and octal literals when reviewing code or infrastructure configs.

Examples

Convert a hexadecimal literal into binary and decimal forms.

Input

Input Value: 0xff
Input Base: Auto Detect

Output

Decimal (10): 255
Binary (2): 11111111
Hexadecimal (16): FF

Convert a binary input and pad output for fixed-width fields.

Input

Input Value: 101011
Input Base: Binary
Left Pad Width: 8

Output

Binary (2): 00101011
Decimal (10): 43
Hexadecimal (16): 2B

Numeral System Reference

FormatSymbols UsedWhat It MeansEngineering Example
Binary (Base 2)0-1Bit-level representationFeature flags and bitmasks
Octal (Base 8)0-7Compact grouping of binary bitsPOSIX file permissions like 755
Decimal (Base 10)0-9Human-default counting systemUser-facing IDs and metrics
Hexadecimal (Base 16)0-9, A-FCompact byte-oriented representationHashes, memory dumps, color values

FAQ

Why does hexadecimal matter so much in debugging?

Hex maps cleanly to bytes (two hex digits per byte), making it easier to inspect binary payloads, IDs, and checksums.

What does Auto Detect look for?

Auto mode checks common prefixes and patterns such as 0x for hex, 0b for binary, and plain numeric text for decimal.