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.
- No TOOLGRID input upload
- No account
- Review before copy
Loading toolβ¦
What 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.
Base Converter performs exact positional-number conversion for integers using digits 0-9 and letters a-z where the selected base permits them.
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.
Where this tool earns its place
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.
Open a nearby browser tool when you need to validate, convert, or reuse the result.
How to use
01Use 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
- 01Select the base instead of typing a prefix
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.
- 02Use underscores only as separators
Inputs such as 1111_0000 or 1_000_000 are accepted because underscores are removed before parsing; they do not change the number.
- 03Keep fractions out of integer conversion
The converter accepts whole numbers only. A radix point and repeating fractional expansions require a separate rational-number conversion method.
FAQ
02Does 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.

