Skip to main content

Keyboard Typing Numbers Instead of Letters? (Num Lock / Fn Fix)

If pressing U, I, O, J, K or L suddenly produces 7, 8, 9, 4, 5, 6 — or a whole block of letter keys turns into digits — your keyboard almost certainly isn't broken. Most laptops without a full-size number pad hide one inside the letter and navigation keys, and a single toggle called Num Lock decides which set you get. Here's exactly why it happens and how to turn it back off, on Windows and Mac.

Close-up of hands typing on a laptop keyboard with small numeral legends visible printed in the corner of the U, I, O, J, K and L keys
Many laptops without a full numeric keypad hide one inside the letter keys — Num Lock decides which one you get.

First, confirm it's not a hardware fault

Before touching any settings, rule out a bad switch. Open the keyboard tester and press one of the misbehaving keys — say, U. Even though the character on your screen is 7, the tester's on-screen layout will still highlight the U key, because it reads the physical key position, not the character produced. A correct highlight means the switch is healthy — the wrong output is coming from a keyboard state, not a fault.

For proof at the event level, open the key event logger and press the same key.code reports KeyU — the physical position, unaffected by any overlay — whilekey reports 7, the character actually sent. When code is right and only key is wrong, the fix is a software toggle, not a screwdriver.

Why this happens: Num Lock and the embedded numeric keypad

Full-size desktop keyboards have a dedicated ten-key number pad on the right. Most laptops don't have the width to spare for one, so manufacturers print a second layer of characters — small numerals and math symbols, usually in a different color or a smaller font — over part of the existing keys. Depending on the brand this overlay commonly lands on U I O (7 8 9), J K L (4 5 6),M , . (1 2 3 0), and sometimes a few keys further out for math operators and Enter.

A hidden setting called Num Lock decides which layer is active. Turn it on and those keys stop sending letters and start sending the numeral printed underneath; turn it off and they go back to normal. These laptops usually have no dedicated Num Lock key or indicator light — it's a software-only state — which is exactly why it's easy to flip by accident and confusing to find again. Common triggers: bumping an Fn combination without noticing, a stray sequence sent by remote-desktop software, or a BIOS setting that forces Num Lock on at every boot regardless of what you set inside Windows.

Fix it on Windows

  1. Check for a dedicated key first. Some larger laptops have a real Num Lk key (often shared with Scroll Lock, Insert, or a corner of the numpad block itself) — press it directly, no Fn needed.
  2. On compact laptops without a dedicated key, it's almost always Fn + NumLk,Fn + F11, Fn + F12, Fn + Insert, or Fn + Scroll Lock. Look for a small padlock-and-numpad icon printed on one of the function keys — that's the giveaway for which combo your laptop uses (Dell and HP frequently use F11; Lenovo and Acer often F8 or a dedicated key near Home/End).
  3. Confirm the current state visually with the on-screen keyboard (Win + Ctrl + O, orSettings → Accessibility → Keyboard → On-Screen Keyboard) — its Num Lock key shows lit when the overlay is active. See Microsoft's own guide to theOn-Screen Keyboard (OSK)for the full walkthrough.
  4. If it comes back on every reboot, the BIOS/UEFI is likely forcing it. Enter setup (usuallyDel or F2 during boot) and look for a Boot Num-Lock orNum Lock State at Boot option, and set it to off.
  5. One brand-specific gotcha worth knowing: several ASUS ZenBook and VivoBook models project a virtual number pad onto the trackpad (marketed as "NumberPad"), toggled by tapping and holding the small icon in its top-right corner. If numbers appear while you're touching the trackpad rather than typing, that's this feature — not the keyboard's Num Lock — and it toggles off the same way.

Try the fix now: toggle Num Lock, then open the keyboard tester and press the affected keys. Watch the on-screen layout — you'll see the same key light up either way, but the character it produces should now match the letter printed on the keycap.

Close-up of a laptop's Num Lock indicator light next to the small numeric keypad legends printed on the keyboard
Toggling Num Lock — often Fn + NumLk or Fn + F11 — clears up almost every case of this.

Fix it on macOS

This exact symptom is rare on a MacBook, since Apple's built-in laptop keyboards don't hide a numeric layer inside the letter keys — there's no Num Lock to trip on the internal keyboard at all. It becomes relevant in two situations instead. Apple's Magic Keyboard with Numeric Keypad (an external, full-size board) has a genuine separate number block with no Num Lock key — theClear key at its top-left toggles it between digits and math operators, and it never touches the letter keys. And if you're running Windows via Boot Camp, or using a third-party Windows-style keyboard on a Mac, the normal Windows fix above applies once you're inside Windows; Boot Camp typically maps Num Lock to a function-key combination that varies by model.

Either way, macOS has its own tool for confirming exactly what a key sends before assuming anything is broken: open Keyboard Viewer from the Input menu in the menu bar (orSystem Settings → Accessibility → Keyboard → Accessibility Keyboard), which shows every character your keyboard's current layer actually produces. Apple's official steps are here:Use the Keyboard Viewer on Mac.

Fn-Lock and other Fn quirks

A related but separate toggle is Fn Lock — sometimes a "lock" light on theEsc or Fn key — which decides whether the top row defaults to F1–F12 behavior or to media/brightness shortcuts when pressed without Fn. If your usual Num Lock combo suddenly stops working, Fn Lock may have flipped; try the same key both with and without holdingFn to see which one actually toggles it right now.

Using an external keyboard or a real numeric keypad

With a genuine external numeric keypad plugged in, the same confusion can look like the opposite problem: digits producing navigation instead — arrows, Home, End, Page Up/Down. That's the same Num Lock toggle, just off rather than on — a dedicated numpad's primary legend is the digit, so turning it off reveals the secondary nav-key legend, the mirror image of a laptop's overlay keys. A laptop's built-in keyboard and a plugged-in external one can also report different Num Lock states at once, so make sure you're toggling it on the device that's actually misbehaving.

Not this? It might be a keyboard layout issue instead

If the wrong characters aren't confined to the usual numeric-overlay keys — instead you're seeing swapped punctuation, Y and Z reversed, or symbols in the wrong place scattered across the whole board — that's a different problem: a keyboard layout or region mismatch rather than Num Lock. Toggling Num Lock won't fix that case. Seekeyboard typing the wrong letters for that fix instead, and function keys not working if the trouble is broader Fn-row behavior rather than just the number overlay.

Once you've toggled the right combination, run through the affected keys one more time in thekeyboard tester to confirm every letter and number lands where it should — it's the fastest way to be sure the fix actually stuck before you close the lid and forget about it.