Skip to content

Code Typing Test

Type real JavaScript, Python or HTML snippets. Indentation is shown but you don't type it, and Enter moves you to the next line.

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 getElementById or user_count mix 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

  1. 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.
  2. Type in tokens. Read const total = items.length; as a handful of chunks, not 27 separate characters.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

Want proof of your speed?

Take a certified 1, 3 or 5-minute test and get a free certificate anyone can verify.

Get certified

Frequently asked questions

What is a code typing test?

It is a typing test that uses real source code instead of English words. You type brackets, operators, quotes and other symbols that programmers use every day.

Which programming languages can I practice?

You can practice JavaScript, Python and HTML. Pick the language using the options above the test.

Do I need to type the indentation?

No. Indentation is shown so the code looks right, but it is filled in for you. Press Enter at the end of a line and the cursor jumps to the first character of the next line.

What is a good typing speed for programming?

Code is much slower to type than prose because of all the symbols, so a coding WPM well below your normal WPM is expected. Accuracy with brackets and symbols matters more than raw speed.

Does typing speed matter for programmers?

Programming is mostly thinking, but being able to type without looking at the keyboard keeps your attention on the problem instead of the keys. Fluency with symbols helps the most.

Related tests

All typing tests Learn to type Race other typists