What is Integer Base Converter?
Integer Base Converter uses BigInt to convert signed integers among binary, octal, decimal, and hexadecimal without JavaScript Number precision loss. Characters and prefixes are validated against the selected source base. Fractions and exponent notation are excluded so precision and meaning remain explicit. Common workflows include the following. View a decimal identifier in hexadecimal. Convert between binary permission bits and decimal values. Verify the complete representation of a very large integer. The page also documents input boundaries, output behavior, and practical cautions so you can review the result before putting it into an application, configuration, test, or production workflow.
When to use it
- View a decimal identifier in hexadecimal.
- Convert between binary permission bits and decimal values.
- Verify the complete representation of a very large integer.
How to use it
- Choose source and target bases.
- Enter a signed integer without a decimal point.
- Convert without Number precision loss.
- Load one of the realistic examples first to verify the selected options and processing direction before replacing it with your own data.
- Review the output, status message, and documented limits; copy, download, or continue only after the result matches your expectation.
Runnable examples
The “Example 1” and “Example 2” buttons load the matching inputs. They cover different structures, directions, or boundaries and can be run directly in the workspace.
Example 1
900719925474099312345Example 2
-170141183460469231731687303715884105727Input rules
- Input must be an integer and may include a leading sign.
- 0b, 0o, and 0x prefixes must match the selected source base.
- Fractions, exponent notation, and spaces inside digits are rejected.
- Text input is counted before processing and is limited to 10,000 characters on this page; file modes apply the separate file limit shown in the workspace.
- Fractions and exponent notation are rejected.
Output rules
- Output uses the standard digits for the target base.
- Hexadecimal letters are uppercase.
- Conversion uses BigInt and never passes through floating-point Number.
- Output reflects only the current input, direction, and options; rerun after changing a mode or value instead of treating an earlier result as current.
- Only bases 2, 8, 10, and 16 are available.
Limitations and cautions
- Fractions and exponent notation are rejected.
- Only bases 2, 8, 10, and 16 are available.
- Whitespace inside a number is invalid.
How your data is handled
Integer parsing and base conversion are performed locally without storing or uploading values.