Text to ASCII Code
Convert text to ASCII/Unicode code points in decimal, hex, octal, and binary.
About This Tool
The Text to ASCII Code Converter displays the numeric code point for every character in your input, in four formats simultaneously: decimal, hexadecimal, octal, and binary. Switch between a table view (showing all formats at once) and a list view (for copy-pasting a specific format as a space- or comma-separated list).
This tool works with all Unicode characters, not just ASCII. Emoji, accented letters, CJK characters, and other non-ASCII characters display their full Unicode code point in each base. All processing runs in your browser β nothing is sent to a server.
How to Use
- Type or paste text into the input field, or click Sample to load an example.
- Use Table view to see all four formats (Dec, Hex, Oct, Bin) side by side.
- Use List view to get a single format as a delimited string, then click Copy.
- Change the separator (space, comma, newline) to match your target format.
Use Cases
Developers debugging encoding issues look up the exact code point of a suspicious character. Security researchers analyze obfuscated strings by inspecting individual character codes. Students learning about character encoding convert sample strings to see the relationship between text and numbers. Embedded systems engineers convert text to ASCII decimal or hex arrays for use in C or assembly code.
FAQ
- Does this support Unicode beyond ASCII (0β127)? β Yes. Any Unicode character is supported. The tool uses JavaScript's native
codePointAt()which handles the full Unicode range. - What is the difference between ASCII and Unicode? β ASCII covers 128 characters (0β127). Unicode extends this to over 1 million code points. The first 128 Unicode code points are identical to ASCII.
- Can I convert the codes back to text? β Use the List view to get a list of codes, then paste them into our Text β Binary tool for round-trip conversion.