Number Base Converter Guide
How to convert decimal, binary, hexadecimal, and octal numbers before debugging code, flags, colors, or low-level examples.
Quick answer
Enter a number and choose the source and target base to convert between decimal, binary, hexadecimal, or octal. Use it for debugging, teaching, flags, permissions, or low-level examples.
What this tool does
The number base converter translates integer representations. It helps when a value appears in code, logs, CSS colors, file permissions, or documentation in a different base than expected.
Step-by-step use
- Enter the source number.
- Choose the source base.
- Choose the target base.
- Convert the value.
- Check prefixes like 0x only if the destination expects them.
Data handling and processing behavior
Number base conversion is handled in the browser for this tool. Avoid entering sensitive values unless you have reviewed the implementation.
Examples
Hex to decimal. FF in hexadecimal equals 255 in decimal.
Binary flags. 1010 can represent enabled and disabled bit positions depending on the system.
Review example. When sharing a converted value, include the original base and expected prefix. A value such as 10 can mean decimal ten, binary two, or part of a larger flag note depending on context. Keep that context in handoff notes.
Assumptions and limits
- Inputs should match the selected source base.
- Negative numbers and very large values may need extra interpretation.
- Conversion does not explain the business meaning of a flag.
Common mistakes
Using invalid digits. Binary only accepts 0 and 1.
Dropping context. A number can be converted correctly while still meaning something system-specific.
Next steps
- Unix Permission Calculator — inspect permission bits
- Color Converter — convert hex colors
- GCD / LCM Calculator — inspect integer relationships
- Roman Numeral Converter — convert another number notation