Skip to content

Count page views and project clicks with PostHog (EU servers)? It loads only if you choose Allow. Privacy

Number Converter live preview
All projects

Number Converter

See binary, hex, and decimal side by side while typing.

Converting between number bases for low-level debugging meant reaching for a calculator app or terminal command every time.

Tech Domain · Book Dev|Published|Evidence: Live|Next.js, TypeScript

A public deployment is available to try.

Case Study

Before

Converting between number bases (binary, hex, decimal, octal) for low-level programming and debugging required calculator apps or terminal commands.

After

The page shows the same integer in binary, octal, decimal, and hex at once, with clear errors for invalid digits.

How it's solved

Built a number base converter, now at /number-converter in the Devtools Workbench suite, with four editable registers: typing in any one updates the others. It parses with BigInt, accepts negative numbers and a 0x prefix for hex, and copies each value.

Trade-offs

Integers only: no fractions or floating point, and no two's-complement, signed/unsigned, or bit-level view.

Related Articles

Further reading on related topics from the blog

Related Projects

More in Tech Domain · Book Dev