How Convert ASCII to Scan Codes Works
Convert ASCII to Scan Codes maps keyboard characters into IBM PC XT / PS/2 Set 1 Make (key-down) and Break (key-up = Make | 0x80) hardware scan codes, optionally wrapping uppercase characters with Left-Shift (0x2A / 0xAA).
Standard 7-bit ASCII (ANSI X3.4 / ISO 646) maps 128 foundational characters — 33 non-printable control codes (0x00–0x1F and 0x7F) plus 95 printable glyphs (0x20–0x7E) — forming the universal bedrock of UTF-8, HTTP, email, source code, and terminal interfaces. Every transformation in this tool executes locally inside your browser with zero server round-trips, guaranteeing immediate responsiveness and complete data privacy.
PS/2 Scan Code Set 1 Make & Break
Make Code = physical key matrix code (0x01..0x58) Break Code = Make Code | 0x80 (bit 7 set on release)
Hardware keyboards report physical switch positions (scan codes) rather than ASCII; the OS kernel keyboard driver combines Left-Shift (0x2A) with key 0x1E to produce uppercase "A".
Worked Reference Examples
| Input | Output | Technical Note |
|---|---|---|
| a (Make) | 0x1E | Physical A key press |
| a (Make+Break) | 0x1E 0x9E | 0x1E | 0x80 = 0x9E release |
| A (with Shift) | 0x2A 0x1E 0xAA | L-Shift down, A, L-Shift up |
Practical Developer & Engineering Workflows
OS Kernel & Emulator Dev
Verify PS/2 IRQ1 keyboard handlers in QEMU, Bochs, and hobby operating systems.
BIOS & VM Key Injection
Generate exact hex scan-code sequences for VBoxManage `keyboardputscancode`.
Compatibility, Edge Cases & Best Practices
Matches US QWERTY physical layout under IBM PC Set 1.
All outputs copy cleanly to the clipboard or export directly as files so you can drop verified ASCII payloads straight into terminals, source repositories, unit test suites, and hardware emulators.