How the code typing test works
This test gives you a short, real-looking code snippet to type. This page starts with JavaScript, and you can switch to Python or HTML using the options above the test.
A few things work differently from a normal typing test so that typing code feels natural:
- Indentation is shown but not typed. The snippet keeps its indentation so it is easy to read, but you never have to press Space or Tab to recreate it.
- Enter moves to the next line. At the end of each line, press Enter and the cursor jumps to the first real character on the next line.
- Every symbol counts. Brackets, semicolons, quotes, colons and operators all have to match exactly.
The test ends when you finish the snippet. You then get your WPM, accuracy, a character breakdown and a keyboard heat map, which usually lights up the symbol keys.
Why code is harder to type than English
Even very fast typists slow down on code. That is expected, and there are good reasons for it:
- Symbols everywhere. A single line of JavaScript can include parentheses, curly braces, square brackets, a semicolon, an equals sign and quotation marks. Many of those need Shift, and most live on the edges of the keyboard where the little fingers have to reach.
- Unusual words. Function and variable names like
getElementByIdoruser_countmix capitals and underscores in ways ordinary text never does. - No sentence rhythm. Prose flows; code is full of short tokens separated by punctuation, so it is harder to settle into a groove.
- Exactness. A misplaced bracket in an essay is a typo. In code it is a bug.
So do not be surprised if your code WPM is a lot lower than your score on the 1-minute typing test. What matters is getting smoother and more accurate with symbols over time.
Where the symbols are
On a US keyboard, most programming symbols are typed by the right little finger, which is why it gets tired first. A quick reference:
| Symbol | Keys | Finger |
|---|---|---|
| ( ) | Shift + 9 / 0 | Right ring / little |
| { } | Shift + [ / ] | Right little |
| [ ] | [ / ] | Right little |
| ; and : | ; (Shift for :) | Right little |
| “ and ’ | ’ (Shift for “) | Right little |
| = and + | = (Shift for +) | Right little |
| < > | Shift + , / . | Right middle / ring |
| _ | Shift + - | Right little |
Remember to hold Shift with the opposite hand. For the right-hand symbols above, that means using the left Shift key.
Tips for typing code faster
- Master the brackets. Brackets and braces appear in almost every line of code. Practicing them until they are automatic will raise your code WPM more than anything else.
- Type in tokens. Read
const total = items.length;as a handful of chunks, not 27 separate characters. - Keep your hands anchored. Reaching for symbols pulls your right hand off the home row. Make a habit of returning to J after each reach.
- Do not rely on autocomplete for everything. Editors help a lot, but typing fluently means you are not waiting on suggestions or hunting for keys.
- Practice your own code. Paste a function from your own project into the custom typing test to practice the exact patterns you write every day.
- Train the number row and punctuation. The numbers typing test and hard typing test build the same reach skills with regular text.
Choosing a language
- JavaScript is heavy on curly braces, parentheses, semicolons and arrow functions. It is a good all-round workout for symbol keys.
- Python uses fewer braces and semicolons and more colons, underscores and indentation. It often feels easier to start with.
- HTML is all about angle brackets, quotes, equals signs and slashes. Great practice if you build web pages.
Who is this test for?
- Developers who want to type code more fluently.
- Students learning to code who find themselves hunting for brackets and symbols.
- Fast typists who want a fresh challenge after mastering word tests.
If you are still building basic touch typing, start with the free course at /learn, then come back. Strong fundamentals make code typing much easier. For general strategies, read how to type faster.