Pythagorean theorem
Find a missing side in a right triangle. Choose whether the missing side is the longest hypotenuse or one of the two perpendicular legs.
Convert one non-negative integer exactly between binary, octal, decimal and hexadecimal.
Saved in this browser. Before changing devices, export a backup from My tools.
The four results are different representations of the same integer. Signed complements, fractions and character encodings are outside scope.
Only non-negative integers up to 64 characters are accepted. Do not use a sign, decimal point, prefix such as 0b, 0o or 0x, comma, underscore or internal space. Hexadecimal may use 0–9 and A–F; output uses uppercase letters. Exact integer arithmetic avoids JavaScript Number precision loss. This converts numeral representations; it does not handle signed complements, fractions, character encodings or floating-point formats.
Only non-negative integers up to 64 characters are accepted. Do not use a sign, decimal point, prefix such as 0x, comma, underscore or internal space. Hexadecimal may use 0–9 and A–F; output uses uppercase letters.
Exact integer arithmetic avoids JavaScript Number precision loss. This converts numeral representations; it does not handle signed complements, fractions, character encodings or floating-point formats.
References:Ministry of Education Encyclopedia: converting decimal to binary、Fengshan Senior High School: numeral systems and base conversion
Convert the same non-negative integer between base 2, 8, 10 and 16 without losing precision.
Enter a value using only digits valid for the selected source base, then choose the target base.
Parse each source digit by place value to obtain one exact integer, then repeatedly divide by the target base to produce target digits.
Hexadecimal 5BD1 equals decimal 23505, octal 55721 and binary 101101111010001.
All four representations describe the same integer. Leading zeroes are removed and hexadecimal letters are uppercase.
Non-negative integers only, up to 64 input characters. Signed complements, fractions, encodings and floating-point formats are outside scope.
You are offline. Calculations use the version already downloaded.