Integer Base Converter

Convert signed integers between decimal, hexadecimal, binary, and octal with strict validation in the browser.

Integer input

Try a sample

Conversion results


                        

When to use Integer Base Converter

Common situations where quick integer base conversion helps:

FAQ

How does auto detect choose the input base?
It checks for 0b, 0o, 0d, and 0x prefixes first. Without a prefix, values containing A-F are treated as hexadecimal and plain digits are treated as decimal.
When should I use the source-base selector?
Use it when your input has no prefix and you want to force binary, octal, decimal, or hexadecimal interpretation instead of relying on auto detection.
Does this converter support fractions or floating-point numbers?
No. This tool only converts whole signed integers.
Why am I seeing an invalid-input error?
The value may include digits that do not belong to the selected base, a mismatched prefix, or too many characters after spaces and underscores are removed.
Is anything sent to the server?
No. Input, conversion, and copy actions stay in your browser.