Base Converter
Convert signed integers between bases 2, 8, 10, 16, 32, and 36 without precision loss.
Tool code processes selected files and entered content in your browser and does not submit them to a TOOLGRID processing endpoint. TOOLGRID measures tool usage, not the content you enter.
Loading tool…
Browser-basedWhat this tool does
Parse a signed whole number in base 2, 8, 10, 16, 32, or 36 and convert it to another supported base. The implementation uses BigInt for exact integer conversion, accepts underscore separators, and shows the decimal value beside the selected output.
It covers binary flags, octal values, decimal IDs, hexadecimal bytes, and compact base-32 or base-36 identifiers without routing through a floating-point Number.
Prefixes such as 0x and decimal fractions are not parsed; choose the source base explicitly and enter only the signed integer digits for that base.
What you can do with this tool
Translate masks, protocol constants, color values, or byte-oriented identifiers into decimal or another debugging notation.
Move an integer between decimal and a compact base-32 or base-36 representation without losing digits to floating-point rounding.
Convert an octal integer to binary or decimal when checking low-level flags, examples, or documentation.
What to check before relying on the result
- Performance and maximum practical input size depend on browser memory, device speed, and the structure of the input.
- Review the generated result before replacing or publishing an original file.
How to use
- 1
Choose the source base that matches the input notation.
- 2
Enter a signed integer using only digits valid for that base; underscores may be used as visual separators.
- 3
Choose base 2, 8, 10, 16, 32, or 36 as the target and review both converted and decimal outputs.
- 4
Copy the result without adding a prefix unless the destination format explicitly requires one.
Use Cases
Translate masks, protocol constants, color values, or byte-oriented identifiers into decimal or another debugging notation.
Move an integer between decimal and a compact base-32 or base-36 representation without losing digits to floating-point rounding.
Convert an octal integer to binary or decimal when checking low-level flags, examples, or documentation.
Tips & Tricks
Enter ff with source base 16, not 0xff. Prefix characters are treated as digits and will make the value invalid in bases where they do not belong.
Inputs such as 1111_0000 or 1_000_000 are accepted. An underscore must sit between two digit groups; leading, trailing, or repeated underscores are rejected.
The converter accepts whole numbers only. A radix point and repeating fractional expansions require a separate rational-number conversion method.
FAQ
Does it support negative numbers?
Yes. Signed integer values are supported.
Which bases are supported?
Binary (2), octal (8), decimal (10), hexadecimal (16), base 32, and base 36 are available as both source and target bases.
Can I convert very large integers?
Yes. Conversion uses BigInt rather than floating-point Number, so integers are not limited to 2^53 - 1. Browser memory and practical input size are the remaining limits.
Can I include 0x, 0b, or 0o prefixes?
No. Choose the source base explicitly and enter the digits without a notation prefix, such as ff for hexadecimal or 1010 for binary.
Are fractional values supported?
No. This converter is intentionally exact for signed integers. Values containing a decimal or radix point are rejected.
Useful next steps
Open a nearby browser tool when you need to validate, convert, or reuse the result.