EditSafely

Convert Keycodes to ASCII

Map JavaScript keyboard keyCodes back to representative characters. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

How to use Convert Keycodes to ASCII

  1. 1. Paste your keycodes. Paste space separated JavaScript keyboard keyCode values like 65 66 49 into the input pane, in the order the keys were pressed.
  2. 2. See each keyCode mapped. Each numeric keyCode is mapped to the character it represents on a standard keyboard, following the same numbering the deprecated KeyboardEvent.keyCode property used.
  3. 3. Copy the decoded characters. Copy the resulting characters once every keyCode has been mapped. Paste a new sequence of codes to decode another logged event.

When to use Convert Keycodes to ASCII

Convert Keycodes to ASCII maps numeric JavaScript keyCode values, the ones the deprecated KeyboardEvent.keyCode property returned, back to the letters and digits they correspond to on a standard keyboard. It saves you from cross referencing an old keyCode reference table by hand.

  • Debugging old keyboard event handlers. A legacy web app still reads event.keyCode instead of event.key and logs raw numbers for each keypress. Pasting the logged codes here shows which physical keys the user actually pressed.
  • Reading a captured input test log. A QA or accessibility test captures a sequence of key codes from simulated input and you need to verify the intended keys. Decoding the sequence confirms the test entered the correct characters.
  • Porting an old keyboard shortcut library. You're migrating a codebase off the deprecated keyCode API and need to know what character a hardcoded number like 13 or 27 actually represents. Converting the codes clarifies each shortcut before rewriting it with event.key.
  • Understanding a game input log. A browser based game logs raw keyCode values for replay or debugging input lag. Decoding a sample sequence shows exactly which keys the player pressed during that session.

Examples

Decode

Input

65 66 49

Output

AB1

About the Convert Keycodes to ASCII tool

Convert Keycodes to ASCII runs as plain JavaScript in your browser tab, with no server behind it. Map JavaScript keyboard keyCodes back to representative characters. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's ASCII Tools section, 81 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

There is nothing to configure. Provide the input and the result appears on its own. A worked example further down the page shows exactly what the tool produces for a real input.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Does Convert Keycodes to ASCII cost anything?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How much text can I process at once?

There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.