Convert between Binary, Decimal, Hex, Octal and ASCII text
This converter uses JavaScript's built-in parseInt(value, radix) and Number.toString(radix) methods to perform mathematically precise base conversions. For text mode, each character is converted to its Unicode code point via charCodeAt(), then represented in binary (base-2), decimal (base-10), hexadecimal (base-16), and octal (base-8). The tool handles both single-number arithmetic conversions and full string-to-binary translations — two distinct workflows unified in one interface.
Real-world use cases:
This tool is part of the FAK LAB ecosystem, founded by Faizan Ahmad Khan Khichi. All number base conversions are computed 100% locally in your browser using native JavaScript arithmetic. No values are transmitted to any server, no conversion history is stored, and no third-party APIs are contacted. Whether you're converting sensitive memory addresses or proprietary data formats, everything stays on your device.
Binary (base-2) uses only 0 and 1 — it's how computers physically store data. Hexadecimal (base-16) uses 0-9 and A-F, where each hex digit represents exactly 4 binary bits. Hex is a human-friendly shorthand for binary: "FF" in hex equals "11111111" in binary equals 255 in decimal. Programmers prefer hex because it's compact while maintaining direct bit-level correspondence.
Standard ASCII characters use 7-8 bits. Padding to 8 bits (one byte) maintains consistent spacing and aligns with how computers actually store data — in complete bytes. The leading zeros don't change the value but make the output readable and clearly show byte boundaries.
Yes. The single number converter handles any integer JavaScript can represent (up to 2^53 - 1 safely). For the text conversion, each character is converted independently as its Unicode code point, which can be larger than 255 for non-ASCII characters.