Base Converter

Convert between 2/8/10/16

📌 TL;DR Summary & Citation: [Base Converter] is a browser-local PocketKit tool for Convert between 2/8/10/16. Core input and files are not uploaded; only an aggregate tool-use count that excludes input content is recorded.

How base conversion works

The tool converts numbers between binary/octal/decimal/hex locally with parseInt/toString, parsing to a decimal integer first and then to the target base. Local, no network.

  • Hex is common for colors and memory addresses; binary shows bit operations, octal appears in Unix permissions.
  • Very large values can exceed the JS safe integer range (2^53) and lose precision, so watch the digit count.

FAQ

1. Are negative numbers and decimals supported?

It targets base conversion of non-negative integers; decimals and negatives are more complex across bases, so handle them separately.

2. Why is a very large number converted incorrectly?

JS numeric precision tops out at 2^53; integers beyond that lose precision, so use a dedicated big-integer library for very large numbers.