🧰Locly

Convert Binary, Octal, Decimal & Hex

Convert numbers between binary, octal, decimal, and hexadecimal

About This Tool

Number Base Converter syncs binary, octal, decimal, and hex as you type. It uses BigInt for large integers. Conversion is processed locally in your browser.

How to Use

  1. Type a value in any base field
  2. See the other bases update
  3. Toggle hex case if needed
  4. Clear when finished

Common Use Cases

  • Debug bit flags
  • Convert color-like hex integers
  • Classroom base conversion
  • Check chmod-style octal
  • Quick binary checks

FAQ

Q1: Why BigInt?

JavaScript Number loses precision above 2^53βˆ’1. BigInt keeps large integers exact for integer bases.

Q2: Are floats supported?

No. This MVP converts non-negative integers only.

Q3: What if I type an illegal digit?

A clear error appears and other fields are not updated from that input.

Q4: Is input uploaded?

No. Conversion is processed locally in your browser.

Related Tools