ASCII to Arbitrary Base Converter
Convert ASCII text to numeric representation in any base from 2 (binary) to 36. Choose separator, padding, and output format.
Type ASCII text, pick a base between 2 and 36, and get each character's numeric code written in that base. Handy for hex colors, binary debug dumps, or octal Unix permissions — without hand-converting anything. And everything runs in your browser. Nothing gets uploaded.
How to Use
Enter your ASCII text in the left panel. Any printable ASCII characters (codes 0-127) are supported.
Select a target base from 2 (binary) to 36 using the Base dropdown. Common choices include base 2, 8, 10, and 16.
Choose a separator (space, comma, newline, or none) and optionally enable padding so all values have the same width.
Click Convert or enable Live mode to convert automatically as you type. Copy, download, or clear the result.
Frequently Asked Questions
What does "convert ASCII to arbitrary base" mean?
Each ASCII character has a numeric code (e.g., 'A' = 65, 'a' = 97, ' ' = 32). This tool takes each character's code and converts it to a representation in the base (radix) you choose -- from base 2 (binary, using digits 0 and 1) all the way up to base 36 (using digits 0-9 and letters A-Z). For example, the letter 'A' (code 65) is "1000001" in base 2, "101" in base 8, "65" in base 10, and "41" in base 16.
What bases are supported and when would I use them?
Any integer base from 2 to 36 is supported. Base 2 (binary) is used in low-level computing and digital electronics. Base 8 (octal) appears in Unix file permissions. Base 10 (decimal) is the standard human-readable number system. Base 16 (hexadecimal) is ubiquitous in programming for colors, memory addresses, and byte values. Base 36 is the maximum because it uses all 10 digits plus 26 letters of the Latin alphabet.
What does the "Pad to equal width" option do?
When padding is enabled, every output value is left-padded with leading zeros so that all values have the same width. For example, in base 16 the character ' ' (code 32 = "20") and '~' (code 126 = "7E") are both 2 digits, but 'TAB' (code 9 = "9") would be padded to "09". This is especially useful in binary output where you may want every value to be exactly 8 digits (e.g., "01000001" instead of "1000001").
Does this tool support non-ASCII or Unicode characters?
This tool is designed specifically for ASCII characters (codes 0-127). If you enter characters outside the ASCII range (such as accented letters, emoji, or CJK characters), they will be flagged and their code points converted as-is. For full Unicode support, consider using a dedicated text-to-hex or UTF-8 encoding tool.
Is my data processed securely?
Yes. All conversion happens entirely in your browser using JavaScript. No data is sent to any server. Your text never leaves your device, making this tool safe for sensitive content. You can verify this by using it offline after the page has loaded.