How to restore a website from the Wayback Machine (and rebuild it in WordPress)

Bring a lost website back

THE SHORT ANSWER

Look up the domain on the Wayback Machine, list every archived URL, download the pages and images from the best snapshots, then rebuild them as a working WordPress site. Text, images and page structure usually come back. Databases, forms and logins never do, because the archive only saves what visitors could see. The CDX API lists every archived URL, and adding id_ to a snapshot URL downloads the original file without the Wayback toolbar.

A host shuts down, a backup turns out to be empty, a domain expires. Suddenly the website is gone, and the only copy left is on the Internet Archive’s Wayback Machine. The good news: a lot can come back. Here is how a Wayback Machine restore works and what to expect.

01What can be recovered?

Usually recoverableSometimesNever
Page text and headingsImages the crawler didn’t saveDatabases
Page structure and menusPages deep in the siteForm submissions and users
Blog postsPDFs and downloadsLogins and admin areas
Old URLs for redirectsStyling detailsServer-side code

02Step 1: check what the archive saved

  • Search the domain on web.archive.org and look at the calendar of snapshots.
  • Pick a date range from before the site broke.
  • List every archived URL for the domain. The Wayback CDX API returns them all in one list.
  • Open the key pages and check that text and images load.

List every archived URL with the CDX API

The Wayback Machine’s CDX API returns one row per unique URL it saved. Paste this in a browser with your domain:

https://web.archive.org/cdx/search/cdx?url=example.com&matchType=domain&output=json&fl=original,timestamp,statuscode,mimetype&filter=statuscode:200&collapse=urlkey

matchType=domain includes subdomains, filter=statuscode:200 skips errors and redirects, and collapse=urlkey keeps one row per URL. Add &from=2022&to=2023 to stay within the years before the site broke. Save the result as your page list and redirect map.

FROM OUR DESK

We always send a recovery report before any work starts: which pages and images exist in the archive and which are missing. Nobody should pay for a restore before knowing what can come back.

03Step 2: download the content

Download the archived pages and images, choosing the best snapshot for each URL. Command-line tools can fetch a whole domain at once. Strip the Wayback toolbar and rewrite the archive links back to normal ones.

Get the original file, not the toolbar version

Every snapshot URL looks like web.archive.org/web/TIMESTAMP/URL. Add id_ right after the timestamp and the archive returns the file as it was saved, without the Wayback toolbar and without rewritten links:

https://web.archive.org/web/20230115000000id_/https://example.com/about/

This works for HTML, images, CSS and PDFs, and it is what download tools use under the hood.

Tools that download a whole site

OptionGood forTrade-off
Open source Wayback Machine Downloader (Ruby, with maintained forks on GitHub)Developers who want every file for a date rangeCommand line only. Large sites take time and hit rate limits.
A short script over the CDX list with id_ URLsFull control over which snapshot each page usesYou write and run the script
Paid restore servicesOwners who want files back without the command lineYou still get static files, not an editable WordPress site
A done-for-you rebuildBusinesses that need a working, editable siteCosts more than a download, but includes the rebuild

Be gentle with the archive: download slowly, avoid repeated full-site runs, and stop if you start getting errors. The Internet Archive is a nonprofit that serves everyone.

ONLY RESTORE YOUR OWN SITE

Restoring content you or your client own is generally fine. Copying someone else’s archived site is not. We only restore sites for their owners.

04Step 3: rebuild it in WordPress

Don’t just republish the old HTML files. Rebuild the pages in WordPress so the client can edit them again.

Turn archived pages into WordPress pages

Clean each downloaded page first: keep only the main content, remove the old theme’s header, footer and scripts, and point image links at files you upload to the media library. Then create the pages as drafts with WP-CLI and review each one in the editor:

wp media import ./images/*.jpg
wp post create ./clean/about.html --post_type=page --post_title="About us" --post_name=about-us --post_status=draft

Matching --post_name to the old slug keeps the original URL. For blog posts, set --post_date from the archived publish date so the history stays honest.

  • Recreate the page structure and menus.
  • Import the text and images into real pages and posts.
  • Match the original look in a theme or page builder, or refresh it.
  • Rebuild forms with a forms plugin.
  • Keep the old URLs, or redirect them, so existing links and rankings keep working.

05How long does it take?

Most restores take 3 to 7 working days, depending on the number of pages and how much was archived. The recovery report itself takes about a day.

Lost a website?

Send the domain. We check the archive and send a recovery report with a fixed quote within 24 hours.

See the service

A site that vanished may still have links pointing at it and pages Google remembers. Rebuilding on the same URLs gets that value back faster.

  • Use the archived URL list as the sitemap for the rebuild.
  • Keep the same slugs where you can, including old blog post paths.
  • Where a URL must change, add a 301 redirect from the old address.
  • Recreate page titles and meta descriptions from the archived HTML.
  • Check backlinks in Search Console or an SEO tool and make sure each one lands on a real page.

07What a recovery report should tell you

Before anyone rebuilds a single page, you should know what is actually there. A useful report answers five questions.

  • How many unique URLs the archive holds for the domain, and from which years.
  • Which key pages are complete, with text and images.
  • Which pages exist only as partial snapshots or not at all.
  • Whether the stylesheets were saved, so the original look can be matched.
  • A fixed price and a delivery date for the rebuild.

FROM OUR DESK

The most common surprise is images. Text is almost always there, but large images and anything loaded by JavaScript are often missing. The report shows that up front, so nobody expects a pixel-perfect copy of a site the archive only half saved.

08Common problems and how we handle them

ProblemWhy it happensFix
Missing imagesThe crawler skipped them or saved a small versionCheck other snapshot dates, then source replacements
Broken layoutStylesheets or scripts weren’t archivedRebuild the design in WordPress from screenshots
Mixed datesPages were saved months apartPick one target date and flag older content
Blank pages on Wix or Squarespace sitesContent loaded by JavaScript wasn’t savedRecover what renders, rewrite the rest from other sources
Archive links everywhereDownloaded pages still point to web.archive.orgRewrite every link to the live domain

09Protect the site once it’s back

A restored site is a second chance. Set it up so the same loss can’t happen twice.

  • Turn on automatic domain renewal and keep the registrar login with the owner.
  • Set up offsite backups on day one and test a restore.
  • Redirect old URLs that changed, so existing links and rankings keep working.
  • Submit the new sitemap in Google Search Console and watch for crawl errors.
  • Put the site on a maintenance plan so updates and backups don’t depend on memory.

10FAQ

Can you restore a website from the Wayback Machine?

Yes, if it was archived. Text, images, page structure and blog posts usually come back. Databases, forms and logins can’t, because the archive never saved them.

Is it legal to restore a site from the Wayback Machine?

Restoring your own content is generally fine. Restoring someone else’s site is not. If in doubt, ask a lawyer.

Will the restored site look the same?

Close, if the stylesheets were archived. Many owners use the restore as a chance to refresh the design while keeping the content and URLs.

What if the archive is missing pages?

The recovery report shows that before you pay. Missing pages can be rewritten from other sources, such as old backups, emails, social posts or printed material. Google retired its cached pages in 2024, so that is no longer an option.

How much does a Wayback Machine restore cost?

It depends on how many pages were archived and how much needs rebuilding. The recovery report comes with a fixed quote, so you know the price before any work starts.

Can you restore a site that was built on Wix or Squarespace?

Often partly. These sites load content with JavaScript, so the archive may have saved less. The text usually comes back, and the report shows exactly what is missing.

How do I download an entire website from the Wayback Machine?

List every archived URL with the CDX API, then download each one using its id_ snapshot URL, or use an open source Wayback Machine Downloader. Pick snapshots from before the site broke and download slowly.

Can I turn a Wayback Machine copy into a WordPress site?

Yes. Clean the downloaded HTML, upload the images to the media library and recreate each page and post in WordPress, keeping the old slugs. That gives you an editable site instead of static files.

How far back does the Wayback Machine go?

The Internet Archive has been saving the web since 1996, but coverage varies a lot by site. Small sites may have only a few snapshots a year, so check the calendar for your domain first.

Md Abu Jubaer Piash

Founder and lead WordPress developer, Finest Web Geek

Piash has built WordPress sites for agencies since 2013. He and his small team have shipped 800+ projects, most of them in Divi and Elementor, all under someone else’s brand.

  • MSc, Computer Science and Engineering
  • Top Rated Plus on Upwork
  • 800+ projects since 2013

How we write: every post comes from our own client work and is checked against the official docs. We update posts when the tools change.

Got a build on your desk right now?

Send the brief today and get a fixed quote by tomorrow.