A basic typing test script with WPM and accuracy calculator.
This project contains an interactive HTML+JavaScript typing speed test application. It helps users practice and measure their typing speed, accuracy, and performance.
- Real-time typing test with a sample paragraph
- Automatic timer that starts when you begin typing
- Accuracy calculation - shows correct and incorrect characters
- WPM (Words Per Minute) calculation - measures your typing speed
- Progress indicator - visual feedback as you complete the test
- Detailed results - displays time, WPM, accuracy, and error count
- Responsive design - works on desktop and mobile devices
- Open the
typing-test.htmlfile in your web browser - Read the sample paragraph displayed in the gray box
- Click on the text input area and start typing
- The timer will automatically start when you begin typing
- Type the entire paragraph as accurately as possible
- Click the "Submit & Get Results" button to see your statistics
- Click "Try Again" to restart the test
- Timer: Shows elapsed time in seconds
- Progress Bar: Visual indicator of how much text you've typed
- Real-time Validation: The input box turns green for correct text and red if there are errors
- Results Panel: After submission, displays:
- Time Taken (in seconds)
- WPM (Words Per Minute)
- Accuracy percentage
- Total characters typed
- Number of errors
For more typing practice, visit our recommended resource.
- The script compares your typed text with the sample paragraph character by character
- WPM is calculated as: (Total Characters Typed / 5) / Time in Minutes
- Accuracy is calculated as: (Correct Characters / Total Sample Characters) × 100%
- The progress bar fills as you type more of the sample text
Works in all modern browsers that support HTML5 and JavaScript.
Open source project - feel free to use and modify!