Number base converter
Convert binary, octal, decimal, hexadecimal.
About this tool
Convert numbers between binary, octal, decimal and hexadecimal in one place. A staple for programming, networking and low-level debugging.
Why use it
- All four common bases converted at once.
- Removes the mental math from base conversions.
- Instant, local results.
Common use cases
- Read a hex color or memory address in decimal.
- Convert a binary flag value to hex.
- Check a permission value across bases.
Tips
- Hexadecimal is a compact way to write long binary values.
- Leading zeros do not change the value, only the display.
How to use
- Enter number and base.
- Convert.
FAQ
- Which bases can I convert between?
- Binary, octal, decimal and hexadecimal, in any direction.
- Is anything uploaded?
- No. The conversion is pure math done in your browser.
- Can I convert hex colors or bytes?
- Yes, hex-to-decimal is handy for color values and byte calculations.
- Does it handle large numbers?
- It handles typical integer sizes; extremely large values may lose precision.
- What is base 16 used for?
- Hexadecimal compactly represents bytes and is common in colors, memory and hashes.
- Can I convert negative numbers?
- Enter the value and choose the bases; standard integer conversion applies.