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
Value in all bases
When to use Integer Base Converter
Common situations where quick integer base conversion helps:
- Check prefixed values from code or logs
Paste values such as 0xff or 0b1010 from source code, logs, or documentation and inspect the equivalent forms immediately.
- Force a specific source base for unprefixed input
Use the source-base selector when you need to treat a value like 1010 as binary, octal, decimal, or hexadecimal without rewriting the input.
- Verify signed integer conversions
Convert negative integers and confirm that the sign stays visible in each output line for documentation or debugging.
- Catch invalid digits before sharing results
Spot digits that do not belong to the chosen base instead of copying a silently wrong conversion.
- Prepare reports for QA or support
Copy the normalized input and all converted forms into tickets, notes, or test evidence.
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.
Integer Base Converter Help
How to use it
- Type or paste an integer. You can include underscores, a leading minus sign, or prefixes such as 0b, 0o, 0d, and 0x.
- Leave the source base on Auto detect or choose an explicit base when the input has no prefix.
- Review the normalized input and converted values, then copy the report if you need to share it.
Tips
- Auto detect uses prefixes first, then treats plain digits as decimal and values containing A-F as hexadecimal.
- Use the source-base selector for unprefixed binary or octal input such as 1010 or 755.
- All conversion happens locally in your browser.