Tools · 2024
Binary Converter
Convert between binary, decimal, hexadecimal, and ASCII in real time. Type in any field and all others update instantly.
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.
- Binary input validates for only 0s and 1s
- Hex input accepts both upper and lowercase
- ASCII supports full printable character range
- Bit visualizer shows 8-bit groups for each byte