Password Reset Form Template

Allow users to securely update their password with this focused and user-friendly reset form.

This template provides the final step in the "forgot password" flow. It includes a "Confirm New Password" field, along with built-in JavaScript validation to ensure the new passwords match before submission.

Screenshot of a password reset form asking for a new password and a confirmation.

Get Source Code → Preview →

About this Password Reset Form

This form is designed for the page a user lands on after clicking a secure link from a password reset email. Its sole purpose is to allow the user to enter and confirm a new password. The design is minimal to prevent distractions and build user trust during this sensitive process.

Importantly, this template includes a small, dependency-free JavaScript snippet that checks if the "New Password" and "Confirm Password" fields match. If they don't, it prevents the form from being submitted and uses the browser's native validation UI to inform the user.

Features

Ideal Use Cases

Dependencies

None. Uses pure HTML and CSS, with a small, self-contained JavaScript block for validation.

Code

Here's the full code for the password reset form template:

View Output