404 Page Generator: Helpful Not Found Page with Search and Links
Fill in your links and texts and get a complete 404.html with a search form, popular links, dark mode and visible focus styles. No scripts and no external files.
Use the tool
Why this tool exists
A good 404 page keeps a lost visitor on your site. It says plainly what happened and offers a search and a few useful links. This template does that in a small file with no dependencies.
The page must still be served with a real 404 status code. Do not redirect missing URLs to it or to the home page, because that creates soft 404s. The generated page has noindex as a safety net, a labelled search field, a visible focus outline and colours that follow the visitor's light or dark setting.
How to use it
- Add your popular links as Label | /url lines.
- Set the site name, texts, search action and accent colour.
- Check the preview, then save the code as 404.html.
- Configure your server to serve it with status 404.
Frequently asked questions
How do I serve it with a 404 status?
Apache: ErrorDocument 404 /404.html. Nginx: error_page 404 /404.html. Static hosts such as Netlify and Cloudflare Pages use a file named 404.html.
Why not redirect to the home page?
Google treats that as a soft 404 and the visitor does not learn that the page is gone.
What if I have no search?
Leave the search action empty and the form is left out.
Is the accent colour accessible?
Check that it has enough contrast against the background. The dark mode uses a lighter colour.