Home › Device & Internet Tests › Code Typing Test

Code Typing Test

Normal typing tests use plain English, but code is full of brackets, semicolons, quotes and indentation. Type real snippets in JavaScript, Python, HTML, CSS, SQL and eight other languages to measure your true coding speed, and see exactly which symbols slow you down.

Last updated:

WPM0
Accuracy100%
Time0:00
Errors0
Progress0%
snippet.jsClick here and start typing

Enter = new line · Tab = jump over indentation · Backspace = fix · Esc = restart

Advertisement
Advertisement

How to use the Code Typing Test

  1. Pick a language and a test length: one snippet, or 30 seconds to 2 minutes of continuous snippets.
  2. Click the code box (or Start typing) and type the snippet exactly, including brackets and punctuation. The timer starts with your first key.
  3. Press Enter at the end of each line. With auto-indent on, the next line's leading spaces are filled in for you; otherwise press Tab or type the spaces.
  4. Fix mistakes with Backspace (Ctrl+Backspace deletes a word). Red characters are errors, the orange cursor shows where you are.
  5. Read your result: net WPM, raw WPM, accuracy, and accuracy for letters, digits, symbols and whitespace, plus the characters you missed most. Press Enter for the next snippet.

How code typing differs from normal typing

English prose is about 80% lowercase letters and spaces. Source code is very different: a typical line of JavaScript or C has several brackets, an operator or two, quotes and a semicolon, and most of them need the Shift key. That is why your code WPM is usually well below your prose WPM, and why this test reports accuracy for letters, digits, symbols and whitespace separately.

Symbol groupCharactersCommon inPractice tip
Brackets( ) [ ] { } < >Every language; < > in HTML, genericsType opening and closing brackets with the same finger pairs every time
Quotes' " `Strings in JS, Python, PHP, SQLThe apostrophe is a right-pinky key; keep the hand anchored on the home row
Statement punctuation; : , .C-style languages, CSS, Python slicesSemicolons end most lines in JS, Java, C, C#, PHP and CSS
Operators= + - * / % ! & | ^Expressions and conditionsPractise combinations like =>, !==, &&, -> and :: as one motion
Special# $ @ _ \ ~Bash variables, PHP, decorators, C macros, regexUnderscore needs Shift plus the minus key: common in Python and SQL names

Reading your results

  • Net WPM = correct characters ÷ 5 ÷ minutes. This is your real, usable speed.
  • Raw WPM counts every keystroke, including mistakes. A big gap between raw and net WPM means you are rushing.
  • Accuracy = correct keystrokes ÷ all keystrokes. Errors you fix with Backspace still count, because they cost time.
  • Symbols bar: below 90% here is common. Practise the characters listed under "Most missed" in a few short sessions per day.

What the languages train

LanguageTypical challenge
JavaScript / TypeScriptArrow functions =>, braces, optional chaining ?., generics <T>
PythonColons, 4-space indentation, underscores, f-strings, slicing [:n]
HTMLAngle brackets, quotes around attributes, = and / in closing tags
CSSColons and semicolons on every line, # colours, units like px and rem
C / Java / C# / RustPointers * and ->, ::, type annotations, semicolons
SQL / Bash / PHPCapital keywords, $ variables, pipes and redirects, quotes inside quotes

Frequently asked questions

What is a good typing speed for programmers?

There is no official benchmark, but expect your code WPM to be clearly lower than your score on an English typing test, because code is full of symbols and Shift combinations. Compare yourself with your own prose WPM rather than with others. Accuracy matters more than raw speed: a typo in code usually means a compile error or a bug, so aim for 95% accuracy or higher first.

How is WPM calculated in this code typing test?

WPM counts every 5 characters as one word. Net WPM = (correctly typed characters ÷ 5) ÷ minutes. Raw WPM uses all keystrokes, including mistakes. Indentation that auto-indent fills in for you is not counted as typed characters, so it does not inflate your score.

Does indentation count?

With Auto-indent after Enter switched on (the default), leading spaces are filled automatically, just like in a code editor, and are not counted. Switch it off to type every space yourself, or press Tab to jump over up to four spaces of indentation in one keystroke.

Why are symbols so much slower to type?

Most code symbols such as { } ( ) < > " : _ + and | need the Shift key, and many sit on the top row or far right of the keyboard, away from the home row. The symbol accuracy bar and the most-missed characters list show which of them cost you the most.

How can I type code faster?

Practise the symbols your results show as weak, keep your fingers on the home row and reach for brackets with the pinky of the opposite hand to the Shift key you press. In real work, editor features such as auto-closing brackets, snippets and autocomplete save even more keystrokes.

What does Stop on errors do?

When it is on, a wrong key is counted as a mistake but the cursor does not move until you type the correct character. This trains precision. When it is off (the default), you can keep typing and go back with Backspace.

Is my typing data sent anywhere?

No. The snippets, timer and statistics all run in your browser. Only your settings and personal best WPM are saved in your browser's local storage.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Typing Speed TestMeasure your typing speed in WPM.Typing Practice LessonsFree touch-typing lessons from the home row to the full keyboard, with finger-color keyboard.Keyboard TesterTest every key and check for ghosting.Click Speed TestTest your clicks per second (CPS) in 1 to 60 second modes.Jitter Click TestMeasure jitter clicking CPS, peak speed and click consistency.Kohi & Butterfly Click TestKohi, butterfly and drag click CPS tests with left/right click stats.Spacebar CounterHow fast can you press space? Timed spacebar clicker test.Mouse TesterTest clicks, double clicks and the scroll wheel.Touch Screen TestCheck multi-touch points, draw trails and find dead zones on any touchscreen.Gamepad TesterTest controller buttons, triggers, stick drift and vibration in your browser.Mouse DPI TestFind your mouse's real DPI by moving it a measured distance, with multi-run averaging.MIDI Keyboard TesterTest a MIDI keyboard or controller: see notes, velocity, CC knobs and pedals live.Pen Pressure TestTest drawing tablet and stylus pressure, tilt and twist live, with a pressure graph.Chimp TestMemorize where the numbers are, then click them in order after they hide. 3 strikes.Input Lag TestMeasure keyboard, mouse and touch to screen latency in ms with average, min and jitter stats.Rhythm TestTap along to a beat and measure your timing offset, consistency and tempo drift in ms.Audio Reaction Time TestReact to a random beep instead of a light. Average your trials and compare to visual reactions.10 Key Typing TestNumeric keypad data-entry test: measure your KPH and accuracy on 1, 3 or 5 minute drills.Controller Stick Drift TestMeasure analog stick drift, resting offset and circularity, and get a recommended deadzone.Controller Vibration TestTest gamepad rumble motors: strong/weak sliders, duration, presets and trigger rumble.F1 Reaction Time TestFive red start lights go out at a random moment: launch as fast as you can and get your time in ms.Keyboard Chatter TestCatch double-typing keys: logs press intervals and flags chatter per key on a keyboard map.Draw a Perfect Circle TestDraw a circle freehand and get a roundness score with a heatmap of where you went off.Keyboard CleanerLock your keyboard in full screen so you can wipe it clean; hold Esc or click to unlock.MIDI MonitorLog every MIDI message from all inputs: notes, CC, pitch bend, clock and SysEx in hex.Typing Test with CertificateTake a timed typing test and download a printable certificate with your net WPM and accuracy.Typing Test for KidsBig, friendly typing test for ages 6–12 with simple words, a key helper, stars, WPM and accuracy.Words Per Minute CalculatorWork out typing WPM (gross, net, CPM, accuracy) or your reading and speaking speed.Ghost Touch TestLeave your screen untouched and log every phantom touch with a heatmap and timeline.Keyboard Layout DetectorFind out if your keyboard is QWERTY, AZERTY, QWERTZ, Dvorak or Colemak and see its key map.Mouse Acceleration TestMove the same distance slowly and quickly to detect OS mouse acceleration with raw input.Trackpad Gesture TestTest pinch zoom, two-finger scroll, swipes, force click and wheel delta modes live.
See all 32 Keyboard, Mouse & Controller Tests →