ASCII Table & Interactive KeyCode Reference

HOT

Comprehensive 0-127 ASCII lookup table paired with a live JavaScript KeyboardEvent inspector and code generator.

ADVERTISEMENT ยท TOP BANNER

Responsive 728x90 / 320x100 Ad Slot

(CLS Prevention Active ยท Zero Shift)
100% Client-Side Processing (Zero Server Upload, Complete Privacy)
Interactive Client Mode

Live Keyboard Event Inspector (Press Any Key)

event.key (ํ‘œ์ค€ ๊ถŒ์žฅ)Enter
event.code (๋ฌผ๋ฆฌ ํ‚ค)Enter
keyCode / which (Deprecated)13
Modifiers
CtrlShiftAltMeta

Full ASCII Table Reference (0 to 127)

Control characters (0-31), alphabet, digits, and punctuation

DecHexBinaryCharDescription
00x0000000000CTRL-@NUL (Null char)
10x0100000001CTRL-ASOH (Start of Header)
20x0200000010CTRL-BSTX (Start of Text)
30x0300000011CTRL-CETX (End of Text)
40x0400000100CTRL-DEOT (End of Trans)
50x0500000101CTRL-EENQ (Enquiry)
60x0600000110CTRL-FACK (Acknowledge)
70x0700000111CTRL-GBEL (Bell)
80x0800001000CTRL-HBS (Backspace)
90x0900001001CTRL-IHT (Horizontal Tab)
100x0A00001010CTRL-JLF (Line Feed)
110x0B00001011CTRL-KVT (Vertical Tab)
120x0C00001100CTRL-LFF (Form Feed)
130x0D00001101CTRL-MCR (Carriage Return)
140x0E00001110CTRL-NSO (Shift Out)
150x0F00001111CTRL-OSI (Shift In)
160x1000010000CTRL-PDLE (Data Link Escape)
170x1100010001CTRL-QDC1 (Device Control 1)
180x1200010010CTRL-RDC2 (Device Control 2)
190x1300010011CTRL-SDC3 (Device Control 3)
200x1400010100CTRL-TDC4 (Device Control 4)
210x1500010101CTRL-UNAK (Negative Ack)
220x1600010110CTRL-VSYN (Synchronous Idle)
230x1700010111CTRL-WETB (End of Block)
240x1800011000CTRL-XCAN (Cancel)
250x1900011001CTRL-YEM (End of Medium)
260x1A00011010CTRL-ZSUB (Substitute)
270x1B00011011CTRL-[ESC (Escape)
280x1C00011100CTRL-\FS (File Separator)
290x1D00011101CTRL-]GS (Group Separator)
300x1E00011110CTRL-^RS (Record Separator)
310x1F00011111CTRL-_US (Unit Separator)
320x2000100000SpaceSpace (๊ณต๋ฐฑ)
330x2100100001!-
340x2200100010"-
350x2300100011#-
360x2400100100$-
370x2500100101%-
380x2600100110&-
390x2700100111'-
400x2800101000(-
410x2900101001)-
420x2A00101010*-
430x2B00101011+-
440x2C00101100,-
450x2D00101101--
460x2E00101110.-
470x2F00101111/-
480x30001100000-
490x31001100011-
500x32001100102-
510x33001100113-
520x34001101004-
530x35001101015-
540x36001101106-
550x37001101117-
560x38001110008-
570x39001110019-
580x3A00111010:-
590x3B00111011;-
600x3C00111100<-
610x3D00111101=-
620x3E00111110>-
630x3F00111111?-
640x4001000000@-
650x4101000001A-
660x4201000010B-
670x4301000011C-
680x4401000100D-
690x4501000101E-
700x4601000110F-
710x4701000111G-
720x4801001000H-
730x4901001001I-
740x4A01001010J-
750x4B01001011K-
760x4C01001100L-
770x4D01001101M-
780x4E01001110N-
790x4F01001111O-
800x5001010000P-
810x5101010001Q-
820x5201010010R-
830x5301010011S-
840x5401010100T-
850x5501010101U-
860x5601010110V-
870x5701010111W-
880x5801011000X-
890x5901011001Y-
900x5A01011010Z-
910x5B01011011[-
920x5C01011100\-
930x5D01011101]-
940x5E01011110^-
950x5F01011111_-
960x6001100000`-
970x6101100001a-
980x6201100010b-
990x6301100011c-
1000x6401100100d-
1010x6501100101e-
1020x6601100110f-
1030x6701100111g-
1040x6801101000h-
1050x6901101001i-
1060x6A01101010j-
1070x6B01101011k-
1080x6C01101100l-
1090x6D01101101m-
1100x6E01101110n-
1110x6F01101111o-
1120x7001110000p-
1130x7101110001q-
1140x7201110010r-
1150x7301110011s-
1160x7401110100t-
1170x7501110101u-
1180x7601110110v-
1190x7701110111w-
1200x7801111000x-
1210x7901111001y-
1220x7A01111010z-
1230x7B01111011{-
1240x7C01111100|-
1250x7D01111101}-
1260x7E01111110~-
1270x7F01111111DELDEL (Delete)
ADVERTISEMENT ยท HIGH CTR IN-FEED

Native In-Feed / High Viewability Ad Slot

(CLS Prevention Active ยท Zero Shift)

Interactive ASCII Table & Modern JavaScript Keyboard Event Reference

The American Standard Code for Information Interchange (ASCII) represents the foundational 7-bit character encoding architecture powering modern digital computing. Encompassing 128 integer code points from 0 to 127, it governs 33 non-printable control characters (such as NUL, LF, CR, TAB, and ESC), 94 printable symbols (Latin alphabet uppercase/lowercase, numerical digits, punctuation marks), and the DEL character.

Concurrently, modern web frontend engineering (React, Vue, TypeScript) relies heavily on keyboard interactionโ€”from global shortcut registries to modal dialog dismissal and canvas game navigation. Transitioning away from legacy, deprecated `event.keyCode` APIs to modern W3C specifications (`event.key` and `event.code`) is critical to ensuring robust internationalization and cross-browser consistency.

OrvoKit ASCII & KeyCode Reference pairs a searchable 0-127 ASCII catalog (complete with Decimal, Hex, Octal, Binary, and HTML entity representations) with a real-time Keypress Inspector that captures live browser `event.key`, `event.code`, `event.which`, and active modifier states (Alt, Ctrl, Shift, Meta) instantly.

7-Bit Binary Mapping & W3C KeyboardEvent Architecture

The binary structure of the ASCII character set alongside the semantic distinction between physical key locations (code) and generated text values (key).

Modern KeyboardEvent: event.key vs event.codeMathematical Formulation
Event.key = 'The printed character value (locale-aware)' | Event.code = 'The physical keyboard key location (hardware layout)'

Because `event.keyCode` is deprecated, use `event.key` when interested in the actual text produced by the user, and use `event.code` for shortcuts or gaming inputs where physical key location matters independently of keyboard layout.

Comparing Keypress Behaviors on the 'A' Key
Pressing lowercase 'a'key: 'a', code: 'KeyA', keyCode: 65Text matches key location
Pressing Shift + 'a'key: 'A', code: 'KeyA', shiftKey: trueCapital character emitted
Non-Latin Keyboard Layoutkey: 'ั„' (Cyrillic), code: 'KeyA'Physical code remains constant
Pressing Enter Keykey: 'Enter', code: 'Enter', ASCII: 13 (CR) / 10 (LF)Standard control mapping

๐Ÿ‘‰ Enables robust keyboard interaction across all international locales and hardware setups.

Essential ASCII Control Characters & Core KeyCode Reference

Quick-reference table of standard control codes, whitespaces, and key points in the ASCII spectrum

DecimalHexCharacterDescription & Control RoleJS event.keyCommon Use Case
00x00NULNull Character'\0'String terminator in C/C++
90x09HT / TABHorizontal Tab'Tab'Indentation, form navigation
100x0ALFLine Feed'\n'Unix/Linux newline delimiter
130x0DCRCarriage Return'Enter'Windows newline (\r\n), Enter key
270x1BESCEscape'Escape'Closing dialogs, cancel actions
320x20SpaceSpace Character' 'Standard word delimiter
650x41ALatin Capital Letter A'A'Start of uppercase alphabet (0x41-0x5A)
970x61aLatin Small Letter a'a'Start of lowercase alphabet (0x61-0x7A)

* Uppercase and lowercase ASCII letters differ only by the 6th bit (0x20 = 32), facilitating trivial bitwise case conversion.

ADVERTISEMENT ยท IN-ARTICLE CONTENT

High-Engagement In-Article Native Ad Slot

(CLS Prevention Active ยท Zero Shift)

How to Use

11. Press Any Key to Test

Press any keyboard key (e.g. Enter, Esc, Space, arrows, or F1-F12) to inspect its live KeyboardEvent payload in the top card.

22. Copy JavaScript Boilerplate

Click [Copy Code] to copy production-ready `if (e.key === 'Enter')` or `if (e.code === 'KeyW')` code snippets directly.

33. Search ASCII Table

Search the comprehensive ASCII table by character, decimal value, hex identifier (0x41), or control description (CR, LF, TAB).

44. Retrieve HTML Entities

Copy safe HTML character references such as `&amp;` or `&#60;` for embedding special characters in web templates.

Frontend Engineering Implementation Scenarios

Real-world keyboard handling patterns in web applications

Search Inputs & Escape Modal Dismissal

Cleanly detect if (e.key === 'Enter') submit() or if (e.key === 'Escape') closeModal().

Canvas Game WASD Navigation

Bind character movement to e.code === 'KeyW' to ensure consistent layout across international keyboards.

CSV / TSV Parser Implementations

Detect ASCII 9 (Tab) and ASCII 10/13 (LF/CR) when streaming tabular text payloads.

Cross-Platform Line Ending Normalization

Convert Windows CRLF (\r\n) and legacy Mac CR (\r) to standardized Unix LF (\n).

๐Ÿ’ก Keyboard Event Handling Best Practices

โœ“ Avoid Deprecated keyCode & which

Adopt `event.key` and `event.code` across your codebases to eliminate inconsistencies between browsers and platforms.

โœ“ Handle IME Composition on Enter

For CJK (Chinese, Japanese, Korean) input, guard against duplicate enter events with `if (e.isComposing) return;`.

โœ“ Distinguish Space Key Values

Remember that `e.code` is the string 'Space', while `e.key` is a single literal whitespace character (' ').

โš ๏ธ Common Pitfalls & Mistakes to Avoid

โŒ Relying on e.key for Game Controls
โœ… On French (AZERTY) or German (QWERTZ) keyboards, e.key produces different letters. Use e.code to bind to the physical key position.
โŒ Hardcoding Numeric KeyCodes in Modern React
โœ… Writing `if (e.keyCode === 13)` is deprecated. Modern lint rules enforce `if (e.key === 'Enter')` for readability and standards compliance.

Frequently Asked Questions (FAQ)

Expert answers to the most frequently asked questions and edge cases.

6 Q&As

ASCII is a 7-bit character encoding system containing exactly 128 characters (0 through 127), spanning 33 non-printable control characters, 94 printable symbols, and the space character.

ADVERTISEMENT ยท FOOTER BANNER

Wide Responsive Banner

(CLS Prevention Active ยท Zero Shift)