Guide

How to convert WordPress to static HTML

Short answer. To convert WordPress to static HTML, generate every public page as plain HTML, CSS and JavaScript files, replace anything that needs a server (forms, search, comments), keep your URLs or redirect them with 301s, test the result and publish the files on a static host or CDN. You can use a static-export plugin yourself, rebuild the site with a static site generator, or have an engineer do it for you.

What does converting WordPress to static mean?

A normal WordPress site builds each page when someone asks for it: the server runs PHP, queries a MySQL database, applies the theme and plugins, and returns HTML. A static website skips that work. Every page already exists as a finished HTML file, with its CSS, JavaScript and images, and a web server or CDN simply returns the file.

Converting means producing that set of files from your WordPress site, so that visitors keep seeing the same pages at the same addresses. WordPress itself is no longer needed on the public server. It can be archived, kept privately as an editing tool, or removed.

This works best for sites where content changes occasionally and visitors mainly read pages and send enquiries: company websites, clinics, portfolios, blogs and landing pages. See WordPress vs a static website for the trade-offs.

Is your WordPress site a good candidate?

Check these points before you choose a method:

  • Good fit: pages and posts that change occasionally, a small number of forms, no user accounts, no live stock or prices.
  • Needs a replacement: contact forms, site search and comments all depend on a server. Each has a static alternative, covered below.
  • Needs a separate assessment: WooCommerce shops, membership areas, learning platforms, booking systems and sites where a team publishes many times a day without a content workflow.
  • Check the page builder: sites built with Elementor, Divi or WPBakery produce a large amount of markup. They convert, but the markup needs more careful handling.

Three ways to convert WordPress to static

1. A static-export plugin (do it yourself)

Plugins such as Simply Static crawl your live WordPress site and write the result as static files, which you can download or deploy to a host such as Cloudflare Pages, Netlify or GitHub Pages. It is the lowest-cost route and works well for simple sites. You are responsible for configuring the export, checking every page, handling forms and search (some plugins offer these in paid tiers), writing redirects and setting up hosting.

2. Rebuild with a static site generator

Tools such as Astro, Hugo or Eleventy build a site from templates and content files. You re-create each WordPress template in the new tool and import the content. The result is clean and fully under your control, but it is a rebuild, not a conversion: it takes the most time and rarely matches the old design exactly unless it is done carefully.

3. A done-for-you conversion

An engineer audits the site, converts it, tests it against the original and hands over the files. wp2static offers this with fixed packages from $195; see the pricing. It suits owners who want the same site as static files without learning the toolchain.

Step by step: how to convert WordPress to static HTML

  1. 01

    Inventory the site

    List every page, post, template, plugin and dynamic feature: forms, search, comments, redirects, scheduled content and embedded widgets. Note which pages Google has indexed and which bring traffic. This inventory decides the method and the scope.

  2. 02

    Back up WordPress

    Take a full backup of files and database before changing anything, and agree a content freeze so the static copy does not drift from the live site while you work.

  3. 03

    Decide how each dynamic feature will work

    Contact forms need a serverless function or a form service plus spam protection. Search needs a static index. Comments are usually removed or replaced by a hosted widget. Anything that needs accounts or a database, such as a shop or a members area, should stay on a server.

  4. 04

    Generate or rebuild the static files

    Run the export plugin or rebuild the templates. Make sure the output contains every public page, post, archive you want to keep, image, font and download.

  5. 05

    Clean up the output

    Remove scripts and tags that only made sense inside WordPress: emoji loaders, REST API and generator links, unused plugin CSS and JavaScript, staging URLs and absolute links that point to the old domain. Optimise images (AVIF or WebP where suitable) and host fonts locally.

  6. 06

    Keep URLs and map redirects

    Keep every URL that can stay the same, including the trailing-slash convention. For URLs that must change, such as old attachment pages, ?p=123 links, feeds, and tag or date archives, write a 301 redirect map in the host's redirect file (for example _redirects on Cloudflare Pages).

  7. 07

    Carry over the SEO essentials

    Check titles, meta descriptions, canonical tags, hreflang, Open Graph, JSON-LD structured data, image alt text, robots.txt and the XML sitemap on every template. Make sure no noindex tag or staging canonical was left behind.

  8. 08

    Test before launch

    Compare each template with the original on desktop, tablet and mobile. Crawl the new site for broken links, submit every form end to end, check the 404 page, and run Lighthouse on old and new pages under the same conditions.

  9. 09

    Deploy to a static host

    Upload the files to a static host or CDN, attach your domain, enable HTTPS and set security headers and cache rules. Good options include Cloudflare Pages, Netlify, GitHub Pages, Vercel, or object storage behind a CDN.

  10. 10

    Switch DNS and monitor

    Point DNS to the new host while the old site stays available as a fallback. Then submit the sitemap in Google Search Console, watch crawl errors and rankings for several weeks, and archive or remove the old WordPress installation once you are sure.

What stops working after conversion, and what replaces it

WordPress featureStatic replacement
Contact and quote formsA serverless endpoint or form service that emails you, protected by a captcha such as Cloudflare Turnstile and a honeypot.
Site searchA static search index generated at build time, for example with Pagefind.
CommentsRemoved, or replaced with a hosted comment widget; agreed during the audit.
wp-admin and editingEdit files in Git, use a Git-based CMS such as Decap or Sveltia, or have the changes made for you.
Redirect and SEO pluginsRedirect rules in the host's configuration, and metadata written into the HTML.
Caching, security and image pluginsNot needed on the public site: images are optimised at build time and the CDN caches the files.
Online shop, accounts, membershipsNot replaceable with static files alone. Keep these on a server or treat them as a separate project.

SEO checklist for a WordPress to static migration

  • Keep URLs identical wherever possible, and redirect every changed URL with a 301.
  • Keep the same title, meta description, headings and body text on each page.
  • Set a self-referencing canonical on each page, using your final domain and not a staging one.
  • Remove any noindex left over from staging, and publish robots.txt and an XML sitemap.
  • Carry over hreflang for multilingual sites, Open Graph tags and JSON-LD structured data.
  • Keep image file names, alt text and the internal link structure.
  • Return a real 404 status for missing pages, with a helpful 404 page.
  • Submit the new sitemap in Google Search Console and monitor coverage and crawl errors after launch.

A correct migration protects what you already have. It does not by itself raise rankings, and nobody can honestly guarantee a position in search results.

Where to host a static website

Any host that serves files can run a static website. When you compare options, look at redirect and header support, serverless functions for forms, bandwidth limits, where your data is stored, and how deployment works.

  • Cloudflare Pages: a global CDN, redirects and headers files, and Pages Functions for form endpoints.
  • Netlify and Vercel: similar Git-based workflows, with built-in function support.
  • GitHub Pages: simple, with limited control over headers and redirects.
  • Object storage with a CDN (for example Amazon S3 with CloudFront): flexible, with more setup.

How much does it cost to convert WordPress to static?

Doing it yourself costs time, plus a plugin licence or developer hours if you rebuild. A done-for-you conversion has a price set by the size and complexity of the site.

wp2static uses fixed, one-off packages: Start $195, Business $395 and Pro $831, with Custom projects quoted after an audit. Page limits, delivery windows and extras are in the pricing section, where the estimator shows the package that fits your site.

Common mistakes to avoid

  • Launching with a noindex tag or a staging canonical left in the HTML.
  • Changing URLs without 301 redirects, or forgetting trailing-slash variants.
  • Assuming forms work because the page looks right: test each one end to end.
  • Deleting the old WordPress site before the new one is verified.
  • Leaving absolute links, images or scripts that still point to the old domain.
  • Expecting search, comments or a shop to keep working without a replacement.

Frequently asked questions

Can I convert a WordPress site to static HTML myself?

Yes. A static-export plugin can generate the files, and the steps above cover what to check. Plan time for forms, search, redirects, testing and hosting.

Do I have to remove WordPress after converting?

No. Some owners keep WordPress privately as an editing environment and republish the static files after changes. Others archive it. Either way, the public site no longer depends on it, and an unmaintained installation should not be left publicly accessible.

Does a static site need a database?

No. The content is part of the HTML files. Features that store data, such as form submissions, are handled by an external service or a serverless function.

Want an engineer to convert your WordPress site?

Send your URL for a free audit. A person replies within 1 business day with what can be static, what needs a replacement and a fixed-price proposal.

Request your free audit