Programming Typing Test

Typing code is not like typing prose: brackets, quotes, operators and line breaks are everywhere. Practise on real snippets in eight languages, with indentation filled in for you like a code editor, and see your code WPM and symbol accuracy.

Click the code and start typing. Press Enter at the end of each line; indentation is filled in for you. A wrong key is counted and the caret waits for the right one. Esc restarts.

A typing test for developers

Code is full of characters that ordinary typing tests ignore: curly braces, square brackets, parentheses, quotes, semicolons, arrows, equals signs and line breaks. Most of them sit on the edges of the keyboard and need Shift. This test uses real, working snippets so you practise exactly those keys.

Languages and snippets

  • JavaScript: a debounce function and an async fetch with filter and map
  • Python: a word counter with type hints and a small class
  • HTML: a contact form and an article card
  • CSS: a responsive grid and button styles
  • SQL: a monthly sales report and a table definition
  • Java: a loop with generics and a record with streams
  • C++: vectors and pointers
  • PHP: formatting prices and validating a form

How it works

Click the code and start typing; the timer starts with your first key. Press Enter at the end of each line and the indentation of the next line is added automatically. A wrong key is counted and highlighted, and the caret waits for the right one. Esc restarts the snippet.

Your results

  • Code WPM = characters typed (indentation excluded) ÷ 5 ÷ minutes
  • Accuracy = correct keys ÷ all keys pressed
  • Symbol accuracy: the same, only for brackets, quotes, operators and other punctuation
  • Keys you missed most, so you know which symbols to drill

Tips for typing code faster

  • Learn the symbol keys by touch, especially { } [ ] ( ) and quotes.
  • Use the opposite Shift key for symbols on the number row.
  • Type in chunks, such as a whole function call, rather than letter by letter.

Warm up with the number typing practice for the number row and its symbols, or test your prose speed on the 1 minute typing test.

Programming Typing Test: frequently asked questions

What is a good typing speed for programmers?

There is no official figure. Typing test sites and developer surveys often put code typing speeds around 50 to 70 WPM, and code is usually a little slower than prose because of symbols. Accuracy with brackets and quotes matters more than raw speed.

How is code WPM calculated?

Code WPM is the characters you typed, including Enter at the end of each line but not the automatic indentation, divided by 5 and by the minutes taken. Raw WPM counts every key pressed, including wrong ones.

Do I need to type the indentation?

No. When you press Enter, the next line's indentation is filled in for you, as in most code editors. You type everything else, including every bracket, quote and semicolon.

What happens when I press the wrong key?

The error is counted and the caret waits until you press the right key, so the code is never left with a mistake in it. Your accuracy and symbol accuracy show how often that happened.