ASCII(1)
๐ธ NAME ๐ธ
so like, this page is ASCII(1) bestie, and it's about ascii โ she reports character aliases โจ
๐ SYNOPSIS ๐
ascii [-8] [-d] [-x] [-o] [-h] [-v] [-a[ [-b] [-s] [char-alias]
(no cap, that synopsis line is exactly how it is, brackets and all, iykyk ๐ )
๐ OPTIONS ๐
okay so first thing: called with no options at all, ascii behaves like ascii -h. periodt. now here's every flag, no skipping, I promise ๐ซถ
-tโ Script-friendly mode!! Emits only the ISO/decimal/hex/octal/binary encodings of the character. No vibes, just data, so your scripts can eat it.-sโ Parses multiple characters at once bestie โ it's the convenient way of parsing strings ๐-aโ Prints in vertical aspect (4 columns by 32 rows) instead of 8x16. This one only combines with-d,-o,-x,-band-8, and it must precede them โ ๏ธ so like,-agoes first, always.-dโ ASCII table in decimal. If arguments follow, it interprets them as decimal values and prints only the corresponding character records ๐-xโ ASCII table in hex. If arguments follow, it interprets them as hexadecimal values and prints only the corresponding character records.-oโ ASCII table in octal. If arguments follow, it interprets them as octal values and prints only the corresponding character records.-bโ ASCII table in binary. If arguments follow, it interprets them as binary values and prints only the corresponding character records.-8โ Shows bit patterns as eight bits, with a leading zero. With no other radix option and without-tor-s, this selects binary mode as if-bhad been given. It combines with-a,-b,-tand-s. With-d,-oor-x, that radix gets used and any character report still shows eight bits ๐-h,-?โ Show a summary of the options plus a simple ASCII table. The comfort-food option fr fr.-vโ Show the version of the program.
๐ฆ DESCRIPTION ๐ฆ
so characters in the ASCII set can have so many aliases depending on context, and ascii is the bestie who knows all of them ๐
A character's possible names include:
- Its bit pattern (binary representation).
- Its hex, decimal and octal representations.
- Its teletype mnemonic and caret-notation form (for control chars).
- Its backlash-escape form in C (for some control chars).
- Its printed form (for printables).
- Its full ISO official name in English.
- Its ISO/ECMA code table reference.
- Its name as an HTML/SGML entity.
- Slang and other names in wide use for it among hackers.
This utility accepts command-line strings and tries to interpret them as one of the above. When it finds a value, it prints all of the names of the character. The constructs in the following list can be used to specify character values. If an argument could be interpreted in two or more ways, names for all the different characters it might be are dumped. no picking favorites ๐
characterโ Any character not described by one of the following conventions represents the character itself.^characterโ A caret followed by a character.\[abfnrtv0]โ A backslash followed by certain special characters (abfnrtv).mnemonicโ An ASCII teletype mnemonic.hexadecimalโ A hexadecimal (hex) sequence consists of one or two case-insensitive hex digit characters (01234567890abcdef). To ensure hex interpretation use one of the prefixesh,0x,x, or\x.decimalโ A decimal sequence consists of one, two or three decimal digit characters (0123456789). To ensure decimal interpretation use one of the prefixesd,0d, or\d.octalโ An octal sequence consists of one, two or three octal digit characters (01234567). To ensure octal interpretation use one of the prefixes0o,o, or\o.bit patternโ A bit pattern (binary) sequence consists of one to eight binary digit characters (01). To ensure bit interpretation use one of the prefixes0b,b, or\b.ISO/ECMA codeโ An ISO/ECMA code sequence consists of one or two decimal digit characters, a slash, and one or two decimal digit characters.nameโ An official ASCII or (unofficial) slang name.:class:โ A named POSIX character class.
The slang names recognized and printed out are from a rather comprehensive list that first appeared on USENET in early 1990 and has been continuously updated since ๐ Mnemonics recognized and printed include the official ASCII set, some official ISO names (where those differ) and a few common-use alternatives (such as NL for LF). HTML/SGML entity names are also printed when applicable. All comparisons are case-insensitive, and dashes are mapped to spaces. Any unrecognized arguments or out of range values are silently ignored ๐ Note that the -s option will not recognize "long" names, as it cannot differentiate them from other parts of the string.
For correct results, be careful to stringize or quote shell metacharacters in arguments (especially backslash) โ ๏ธ like, the shell will absolutely eat your backslash if you let it, bestie.
This utility is particularly handy for interpreting cc(1)'s ugly octal "invalid-character" messages, or when coding anything to do with serial communications ๐ก As a side effect it serves as a handy base-converter for random 8-bit values. main character energy honestly ๐ฅ
๐ AUTHOR ๐
- Eric S. Raymond
esr@thyrsus.com; November 1990 (home page athttp://www.catb.org/~esr/). - Ioannis E. Tambouras
ioannis@debian.orgadded command options and minor enhancements. - Brian J. Ginsbach
ginsbach@sgi.comfixed several bugs and expanded the man page. - David N. Welton
davidw@efn.orgadded the-soption. - Matej Vela corrected the ISO names.
- Dave Capella contributed the idea of listing HTML/SGML entities.
and that's the whole page bestie, you ate it ๐ this was ASCII(1), dated 2026-10-23 โ go convert some random 8-bit values, I'm obsessed, bye ๐
โจ
๐ฆ where this page comes from
- fedora 43: ascii 3.33-1.fc43 ยท BSD-2-Clause
- fedora 44: ascii 3.33-1.fc44 ยท BSD-2-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms