404 Page Design That Helps Lost Visitors Find Their Way
A visitor clicks an old link, lands on a blank page that says "Not Found", and closes the tab. You never see them again.

A visitor clicks an old link, lands on a blank page that says "Not Found", and closes the tab. You never see them again. Good 404 page design turns that dead end into a short detour, and it is one of the easiest layout exercises a beginner can practise because the page has one clear job: get the person somewhere useful in a single click.
I design product interfaces, and the error page is often the screen I learn the most from. It strips away everything decorative and asks a blunt question: when the plan fails, does your layout still guide the reader? Here is how to make sure it does.
What a 404 page needs to do
A 404 appears when the server cannot find the address the visitor asked for. The cause might be a typo, a deleted post, a moved page or a broken link on another site. The visitor did not do anything wrong in most of these cases, and they arrived with a goal. Your page has three tasks, in this order:
- Confirm what happened in plain words, so they do not wonder whether the whole site is down.
- Offer a next step that matches the most likely goal.
- Keep the site familiar so they know they are still in the right place.
Everything you put on the page should serve one of those tasks. If an element does not, it is clutter.
The layout of good 404 page design
Think of the page as a small vertical stack centred in the content area, with the normal header and footer around it. A layout that works for most sites looks like this:
- Header and navigation: unchanged from every other page. This is the strongest signal that the visitor is still on your site.
- Headline: one short line such as "We cannot find that page". Set it at your normal h1 size, not a giant 200 pixel "404".
- One sentence of explanation: "The link may be old or the page may have moved."
- Search box: full width of the content column, with the cursor ready if your platform allows it.
- Three to five links: your most visited pages or main categories, as a simple list or small cards.
- Footer: unchanged.
Keep the whole content block under about 600 pixels tall on a laptop so the search box and links sit above the fold. Our guide to a web page layout that guides the eye explains why placing the action directly under the headline works so well.
Spacing and hierarchy
Use generous space above the headline, around 64 to 96 pixels on desktop, so the message has room to land. Then tighten the spacing between headline, sentence and search box to 16 or 24 pixels, so they read as one group. Put a slightly larger gap, around 40 pixels, before the list of links. That rhythm tells the eye: here is the problem, here is the quick fix, here are other options.
Words on the page
Copy is part of the layout here, because short copy changes how much space everything takes. Aim for under 30 words in total before the search box. Skip the apology paragraph. Avoid technical words like "server" or "HTTP". "Page not found" is fine, and so is a friendly line, but jokes wear thin for someone who is in a hurry.
The advice I would push back on: make it funny
Design galleries love 404 pages with full screen illustrations, animated characters and clever puns. They look great in a portfolio. In my experience they often perform worse for real visitors.
The reason is attention. A large illustration pulls the eye first and pushes the search box and links below the fold, especially on a phone where the screen is around 700 pixels tall. The visitor has to scroll past a joke to find the help. On sites I have tested, swapping a big illustration for a compact layout with search near the top noticeably increased the share of 404 visitors who went on to another page.
If your brand has a playful voice, keep it in the headline or a small image beside the text, no taller than about 160 pixels. Personality is fine. Personality that hides the exit is not.
Mobile 404 page layout
A big share of broken link traffic comes from phones, often from links shared in messaging apps. On a small screen, the stack above becomes even more important:
- Keep the headline to two lines at most.
- Make the search field at least 44 pixels tall so it is easy to tap.
- Show the helpful links as full width tap targets with 12 pixels between them.
- Do not hide the main menu behind a different pattern from the rest of the site.
If your menu collapses into an icon on phones, make sure it behaves exactly as it does on other pages. Our article on mobile navigation design rules covers the patterns that work best.
Choosing which links to show
Do not guess. If you have analytics, look at your top five pages by visits over the last three months and link those. For a blog, that might be the home page, two or three popular articles and the main category pages. For a small shop, it might be the home page, best selling products and the contact page.
A smarter version reads the broken address and suggests a related page. If someone asks for "/blog/color-theory-basics" and that post moved, a page that suggests "Color theory for beginners" is far more helpful than a generic list. Many site builders and plugins can do this with a simple keyword match, and it is worth turning on once your site has more than about 50 pages.
Finally, do not forget the footer. Visitors who are lost often scroll straight to the bottom looking for contact details or a sitemap. A well organised footer is a second safety net, as we explain in website footer design that visitors use.
Test it before you ship
Type a nonsense address on your own site, such as your domain followed by "/test-missing-page", and look at the result on a laptop and a phone. Check three things. The page should return a real 404 status rather than a normal page, so search engines do not index it. The header and footer should match the rest of the site. And you should be able to reach a useful page in one tap without scrolling. If all three pass, your error page is doing its job.
Frequently asked questions
What should a 404 page include?
A clear headline, one short sentence of explanation, a search box and three to five links to popular pages. Keep the normal header and footer so visitors know they are still on your site.
Should a 404 page redirect to the home page?
Usually not. Redirecting every missing page to the home page confuses visitors and can confuse search engines too. Show a proper 404 page instead, and add individual redirects only for pages that moved to a new address.
Do custom 404 pages help SEO?
They do not raise rankings directly, but they keep visitors on the site and help them find working pages. The important technical point is that the page must return a 404 status code, so search engines know the old address is gone.
More in Web Design
Web Design
Form Error Message Design That Helps People Fix It
I watched a friend try to book a vaccination appointment on a council website last winter.
Web Design
Sticky Header Design and How Much Space to Give It
Open a lot of small business sites on a phone and you find the same thing.
Web Design
Link Styling on the Web and Why Underlines Still Win
A studio I helped out last spring had a beautiful article page and a support inbox full of the same question: where do I click...