← All projects

Tools · 2024

Binary Converter

Convert between binary, decimal, hexadecimal, and ASCII in real time. Type in any field and all others update instantly.

GitHub GitHub Repository
Bit visualisation
enter a value above
Bits
Bytes
Unsigned
Signed (8-bit)
ready

About this tool

A real-time number base converter built in vanilla JavaScript with no dependencies. Supports multi-character ASCII strings. Each character is converted independently and displayed as values seperated by spaces. This project was converted to fit this website from an older standalone project.

How it works

Every input field listens for changes and parses the value according to its base. The parsed value is then formatted into all other representations simultaneously. For ASCII strings longer than one character, each character's code point is processed individually and joined with spaces.