# Custom 404 Page Generator > Free custom 404 page generator that runs in the browser: type a site's address and get a self-contained > 404.html with links back into the site, plus the server rule that serves it with a real 404 status. > https://custom-404-page.skillsafe.ai/ ## What it does - Reads the site's name from its address and starts the page with a Home link. - Writes one self-contained 404.html: inline style, inline SVG picture (big 404, compass, broken link or none), no scripts, no images, no fonts, ``. Light, dark or the site's colour as the background; centred or left-aligned. - Optional search box with no script: Google search limited to the site's domain (as_sitesearch), or the site's own search page (for example /search?q= or WordPress /?s=). Optional "Tell us" email line for broken links. - Checks the page: relative links rewritten to root-relative so they work at any depth, unusable links dropped, 2 to 6 links advised with a Home link, WCAG contrast of the chosen colour, file size, http and local addresses. - Picks links from a pasted sitemap.xml, menu or list of addresses (this site's shallowest pages first). - Gives the rule that serves the page with status 404 on Nginx (error_page + internal), Apache (ErrorDocument), Netlify, Vercel, Cloudflare Pages, GitHub Pages, Firebase Hosting (404.html at the output root), Caddy (handle_errors), Express (res.status(404).sendFile), IIS (httpErrors ExecuteURL) and Amazon S3 (error document). - Exports: Download 404.html, copy the HTML, copy the rule, download setup steps (.txt) or .json. - Free, no sign-up; nothing is uploaded on the free path. ## Optional AI step After sign-in (metered, model llm-default), the visitor can paste what the site is about, its menu or its sitemap. AI writes the headline and message in the chosen tone (friendly, plain, playful) and picks 2 to 6 links. The page accepts a link only if it is one of the site's own pages that the visitor gave, and refuses any text with a web address, an emoji or a figure that was not in the input. API: https://custom-404-page.skillsafe.ai/api.html (task "write"). ## Sources - Adapted from the agent skill @kostja94/404-page-generator (kostja94/marketing-skills, MIT): https://skillsafe.ai/skill/@kostja94/404-page-generator