Number Base Converter
Convert integers between binary, octal, decimal, and hexadecimal.
Read the guideRun the tool
The calculation runs in your browser. This tool does not send your input to JVR Software.
More information
Back to the toolWhat it is and when to use it
Number Base Converter expresses the same nonnegative integer in different digit systems. Binary, octal, decimal and hexadecimal are useful when inspecting configuration fields, byte values, number exercises and developer tools that present data in different notations.
How it works
The browser reads the digits according to the selected source base, using integer arithmetic. It rewrites the number using the target base’s digits. The place value of a digit depends on its position, so an identical-looking string can represent different integers in different bases.
How to use it
- Select the base in which the input was written.
- Enter its digits and choose a target base.
- Verify the result by converting back or looking at a known example with the same base settings.
Worked example
The hexadecimal value FF equals 255 in decimal and 11111111 in binary. The string 10 equals two in binary, eight in octal, ten in decimal, and sixteen in hexadecimal. Choosing the correct starting notation is therefore essential.
Reading the result
Hexadecimal uses digits 0 through 9 and letters A through F. In binary only 0 and 1 are valid. Padding to a fixed width and adding conventional prefixes are separate formatting decisions. A result can be numerically correct even if it has fewer characters than a byte-oriented display expects.
Common mistakes and limits
This tool handles unsigned whole numbers. Negative values, fractions, floating-point encodings and signed two’s-complement patterns need rules for the intended format and width. A one-off conversion cannot infer those rules from the digits alone.
