How to restore a website from the Wayback Machine

Last updated 2026-11-20

If you have lost your site and have no backups — the host wiped the account, the hard drive died, the domain lapsed and someone else bought it — the Wayback Machine is often the only copy that still exists. It is not a backup of your site. It is a library of snapshots the Internet Archive’s crawler happened to take, filed by URL and by date, and it was never meant for restoration. Still, if you read the archive the way it is actually organised, you can usually get most of the writing, most of the images, and enough of the structure to publish again.

Before you read on, run a free Wayback Machine scan of the domain — it tells you how many pages the archive holds and whether a restore is worth the work. If you intend to land back on WordPress, the same free WordPress scan shows the URL tree and the posts the archive still remembers.

This page walks through three concrete paths — hand copy, the open-source downloader, and an AI-checked restore — and tells you which one to pick for which situation. There is no promise about rankings; the search engines treat a restored site as new content, and that is a separate conversation from getting the files back.

What the Wayback Machine actually gives you back

One mental model first, because it governs every step below. The Wayback Machine stores the web by URL and timestamp, not by site. Your old homepage is a URL with its own list of captures. Every sub-page is a separate URL with its own, usually shorter list. A page nobody linked to may have no captures at all. The Internet Archive’s own help page is plain that not every archived date is complete, and full-text search across archived pages is not available — you search by address, not by what the article said (Internet Archive Help Center, Using the Wayback Machine).

That has three consequences for a restore:

  • You can almost always get back pages that had inbound links. The crawler followed links, so anything other sites, your own sitemap, or your menu pointed at is likely captured somewhere.
  • You often cannot get back orphan pages. Drafts, uploads nobody linked to, admin pages, members-only content — if nothing on the public web pointed at the URL and you did not submit it to the Archive yourself, it probably is not there.
  • The newest snapshot is often the worst one. If your site was already broken, hijacked or gone for a while before anyone noticed, the captures from that window will show the broken version. Older snapshots are usually healthier.

Before anything else, open the archive at your domain and look at the calendar. If you see the colour code of the capture dots and the last twelve months are mostly orange and red, go back further; pick a blue date you remember the site working on. That one choice saves more restores than any tool.

Before you start — four checks

These are the four I wish every person asking “can you restore my site?” had answered before they wrote in.

  1. Do you actually need the archive, or is there a cheaper copy? Google’s cache is usually shorter-lived, but if the site only went down recently, cache:example.com in Google still works. Your old host may still hold a billing-period backup even after the account closed — ask them in writing before you assume it is gone. Your browser’s local history can show pages you visited; browser caches rarely hold a readable copy, but email receipts, Slack and Discord often link to the exact URLs you want to recover. Build the URL list first; use the archive for what is only in the archive.
  2. Do you own the domain, or is someone else on it now? If the registration expired and a new owner is on the domain, restoring the content under that domain is not yours to do. You can still legally restore your own writing and publish it on a new domain; that is a very common path.
  3. Is the material yours to restore? If the site had other authors, guest posts, or third-party images, your right to republish those stops at your own content. The Wayback Machine itself is not a licence — it is an archive. The Internet Archive’s own terms are explicit that you need the rights to the underlying content before you redistribute it (Internet Archive, Terms of Use).
  4. What is your minimum acceptable restore? “Every page as it looked” is a very different job from “the ten money articles, cleanly, under new design.” Pick before you start: it decides whether you need Path 1, 2 or 3.

Three paths from the archive to a working site

Everyone restoring from the Wayback Machine ends up using one of three paths — or a mix. They differ on cost, on quality, and on how much of the work is yours.

Which path fits which situation

Path Best when Who does the work Cost Output
1. Hand copy from the browser You need 1–10 specific pages back, text-first You, inside the browser Only your time Clean HTML or Markdown you paste into a CMS
2. Open-source downloader (self-serve) You want the whole archived site, happy to rebuild the design You, on your own machine Free software, your time HTML folder
3. AI-checked restore (service) You want a ready-to-publish site, design intact, junk pages removed Someone else, checked by an AI, delivered Paid service Static site or editable WordPress, delivered live

Pick on the cost of your time and on how clean you need the output. Below is each one in just enough detail to decide.

Path 1 — Save what you can from the browser

This is the right path when there are only a few pages you really want back, and you want them clean.

1. Build the URL list first

Do not browse the archive. Browsing is slow and you will miss pages. Go to the archive and ask for the index of your domain by replacing the timestamp with a wildcard: web.archive.org/*/www.yoursite.com/*. That form is the one the Internet Archive’s own help page gives for listing the archived URLs of a site (Internet Archive Help Center). Copy the list, open it in a spreadsheet, and mark the pages you actually want. Ten focused URLs beats three hundred scraped ones.

2. Pick the right snapshot per page

Open the calendar for each URL on your list, pick a blue capture from a date when the page was in good shape, and open it. Do not trust the newest one by default — the newest is often the one that broke. The timestamp lives in the archive URL in yyyymmddhhmmss format; edit the number by hand to jump to the nearest capture of a different date.

3. Copy the content, not the archive chrome

When you save a page from the archive, strip the banner and JavaScript the archive adds on top. The quickest way: open the archived URL, prepend id_ to the timestamp (for example web.archive.org/web/20200101000000id_/example.com/post/). The id_ flag tells the Wayback Machine to serve the original page without its playback wrapper (documented in the Wayback CDX Server README, Internet Archive on GitHub and the Internet Archive’s help pages). You now have the raw HTML to copy, save or paste.

4. Save the images separately

Image URLs inside the HTML still point at the archive. Before you publish, download each image and rewrite the <img src> to your own domain, or the images stay dependent on the archive forever — and the archive is not your CDN. If a lot of images are missing, see the common-failures section below.

Path 2 — Use the open-source downloader

When you want the whole site rather than a handful of pages, the hand path turns into a bad deal. This is where the free open-source Wayback Machine downloader comes in. It reads the archive’s index API and saves the latest capture of each page to disk as plain HTML files. Like every CDX-driven scraper, it starts from the index, not from the pages — so it never crawls your old site the way Google would.

1. Install and run against the index first

Install the tool, point it at your domain, and ask it only for the index first — no downloads. You want to see the shape of what the archive has before you pull anything. The CDX server lets you filter by status code and collapse duplicates with filter=statuscode:200 and collapse=digest, which the CDX Server README describes and which the tool exposes as flags. A ten-minute pass through the filtered index tells you whether a mass pull is worth the next two hours.

2. Pull, then rewrite links

Once the filtered index looks sensible, run the download. The output is a folder of HTML files plus a manifest of every URL and its capture date. The pages are the raw captures, without the archive’s toolbar, but nothing inside them is rewritten: links, image src attributes and scripts still point where they pointed when the page was captured, often at files that no longer exist. You clean those by hand with search-and-replace. If you do not, the “restored” site keeps calling files nobody serves any more.

3. Import into WordPress — or do not

If your target stack is WordPress, you need a WordPress import file, which the free downloader does not write (it stops at HTML; the AI-checked restore delivers one). An import file plugs into Tools → Import → WordPress and brings in posts, pages, categories and tags (WordPress Documentation, Importing Content). If your target is static HTML, skip the import file and host the folder as-is on any static host. The right choice is the one you can maintain; a WordPress site you never update is worse than a static one you never touch.

Path 3 — AI-checked restore (Wayback Press)

The honest case for a paid restore is this one: scraping the archive is cheap, but reading the scrape — picking the right snapshot per page, dropping junk, repairing broken assets, matching the original design — is the slow part. That is the part Wayback Press automates with checks the open-source tool does not do.

What the service adds beyond the free downloader: the agent picks a healthy snapshot per page (not the newest), drops junk and spam captures the archive picked up over the years, rebuilds the design from the archived HTML and CSS, and has an AI check the output before delivery. The output is a working site — static HTML, or editable WordPress — rather than a folder you still have to shape. We describe the allowed level of detail about how the flow runs on the pricing page; the mechanics under the hood are not public.

If you are weighing it against doing it yourself, DIY vs hire a website-restore service walks through the breakpoints — the number of pages, the time cost, the design-fidelity requirement — at which each path stops being the cheaper one. Before you hire anyone (us or anyone else), read what to check before hiring a website-restore service; the five questions there stop most bad engagements.

Common failures and how to read them

Three failures account for most “it did not work” reports. None of them are bugs — they are the archive behaving the way an archive behaves.

Mixed snapshots

The home page is from March, the menu is from October, the sidebar is from a year earlier. That is normal: each capture is independent, and a tool that pulls “the archived site” is really pulling many captures pasted together. The fix is to pick a target date, filter the index to captures within a tight window around it, and discard the rest. A site in good shape will usually have one such window; a site that broke slowly may not.

Missing stylesheets and images

You get back the HTML, and the pages render as a wall of unstyled text. The CSS, JavaScript and image files were separate URLs; the archive did not always capture them, especially if they were on a CDN or behind a hashed path. Missing images and CSS after a Wayback restore covers the specific fixes — rebuilding the stylesheet from the archived HTML, substituting modern image URLs, and when to just redo the design rather than chase lost files.

Junk and spam pages

If your domain expired and sat on a parking page, in a redirect loop or under a spam operator for a while, the archive captured that too. A naive scrape pulls those pages in alongside the real ones. The hand path avoids this because you are building the URL list yourself; the downloader and the paid service have to filter them out. One rough rule: any page whose only inbound link in the archive is from the archive’s own list is suspect; any page captured only during the “bad” window on your timeline is suspect.

Where this leaves you

Pick a path before you open a tool. Count the pages you actually need, look at the archive’s calendar for your domain, decide whether you can live with a hand copy, a scraped folder, or a delivered site, and stop there. The failure mode is not a technical one — it is starting on Path 2 and giving up halfway, or hiring Path 3 for five pages you could have hand-copied in an afternoon.

When you are ready to pull anything, the Wayback Machine basics cover how to read the calendar and snapshot URL fluently. For the tool itself, see the open-source downloader. If the archive is not enough — captures too sparse, too broken, too much junk — there are other sources besides the Wayback Machine worth checking before you give up. And if you want it delivered, Wayback Press restore is the path we run end-to-end.

FAQ

Can the Wayback Machine restore my whole site?

Only the parts of it that were on public URLs and that the Archive’s crawler happened to reach. Members-only pages, drafts, uploads that nobody linked to, and admin screens are almost never there. In practice “most of the public pages, missing some images and stylesheets” is the honest expected outcome, not “everything back as it was.”

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

Your own content, yes. Third-party content on your old site — guest posts, licensed images, embedded video — stops at the original licence. The Internet Archive’s own terms treat the archive as a reference, not a licence to redistribute (Internet Archive, Terms of Use). Restore your writing; replace or re-license anything that was not yours.

Which snapshot should I pick?

Not the newest. Open the calendar, find a blue dot from a date you remember the site working, and start there. If you need a tighter window, pick a date range of a few days rather than a single capture; captures of individual pages inside that window will usually line up.

Why do images come back broken?

Images are separate URLs the archive crawls separately, and it was often slower at them than at HTML. A lot of CDN-hosted or hashed image paths were never captured. Expect to replace some, especially on older sites. Missing images and CSS after a Wayback restore walks through the fixes.

Can I restore a WordPress site to WordPress?

Yes, via a standard WordPress import file. Any tool that writes a valid import file can be read by WordPress’s own Importer plugin, which brings in posts, pages, comments, categories and tags (WordPress Importer, wordpress.org). You will still need to reconnect images and reapply or rebuild the theme.

What if my pages are not in the archive at all?

The archive crawled what it could; an orphan page may genuinely be gone. Before you give up, check Google’s cache, your own old emails and Slack for linked URLs, and other archives besides the Wayback Machine. Some content is only in one of those, not in the Internet Archive.

Do I need the original domain?

No. Restored content can live on a new domain. If the old domain lapsed and is now in someone else’s hands, moving the content to a new domain is often the cleanest choice — search engines treat it as new content either way.

Wayback Press is an independent service that uses the Internet Archive’s Wayback Machine as a source. It is not affiliated with, or endorsed by, the Internet Archive.

Restore a lost website →