How to rebuild a website from the Wayback Machine

In short

  1. Check coverage before promising anyone a recovery.
  2. Export the address list from the CDX index — that is your work plan.
  3. Download in id_ mode, otherwise the copy keeps calling the archive.
  4. Rewrite links, fix encodings, then verify the copy with the network off.
  5. What the crawler never saw cannot be rebuilt — say so early.

Rebuilding from the Internet Archive is not a restore in the backup sense. There is no database, no admin panel and no media library: there are HTTP responses the crawler happened to request. The work splits into five steps, and most failures happen in the first and the last.

1. Check coverage first

Open web.archive.org and enter the domain. The calendar shows capture dates. Two things matter: the earliest and latest snapshot, and whether captures are spread over the whole site or concentrated on the home page.

A site with a handful of home-page snapshots is not recoverable in any meaningful sense — you will get a landing page, nothing else. A site with hundreds of URLs across categories usually rebuilds well. Say this out loud before starting: it is better to disappoint at minute five than at hour six.

2. Export the address list

The CDX index returns every captured URL as structured text:

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

Save the result as CSV. From here on, everything is driven by that file: how many pages exist, which types, and how long the download will take.

3. Download in id_ mode

Each archived file is addressed by timestamp plus the original URL. Without a modifier the archive returns a rewritten page whose links point back to web.archive.org:

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

The id_ modifier returns the raw stored response. That is what you assemble: links stay relative to the original domain, and the copy can be made to work offline later.

Practical constraints you will meet within the first hundred requests:

Download Site Restorer

CDX export, parallel download with adaptive concurrency, resume and a completeness report. One exe, MIT licence.

Download

4. Assemble the local copy

Downloaded files are a pile of responses. Three transformations turn them into a site:

  1. Paths. Map each URL to a file path. Query strings have to be hashed or dropped deliberately, and directory URLs become index.html.
  2. Links. Rewrite absolute URLs to relative paths so the copy resolves locally. Handle percent-encoding and IDN domains explicitly.
  3. Encodings. Older pages are often windows-1251 or iso-8859-1; without conversion to UTF-8 the text turns into mojibake after the rewrite.

Missing assets are expected. A stylesheet the crawler never fetched will 404 locally; list it rather than silently replacing it with an empty file — you will want that list when deciding what to rebuild by hand.

5. Verify before publishing

Only then publish. If the site goes back to the same URLs, search traffic returns fastest; if the structure changes, add 301 redirects from the old paths and tell search engines to re-crawl.

What will not come back

LostWhyWhat to do
Database contentonly rendered HTML was capturedrebuild from exports or re-enter by hand
Product images, PDFscrawlers rarely fetch every assetrestore from backups, reshoot, or ask partners
Forms, search, checkoutthey need a serverrebuild the application, the copy is static
Pages behind loginnever crawledreconstruct from database dumps if any
Dynamic widgetsthird-party scripts are dead or blockedreplace with static equivalents or remove

A rebuilt site is a static snapshot. That is enough to keep content online, keep search traffic and give customers a working reference — it is not a working online store.

Checklist

FAQ

Can a whole site be rebuilt from the Wayback Machine?

Only the part the crawler captured. Pages, styles, scripts and some images are usually there; uploads, files behind a login and anything generated by a database are not. The CDX index lists exactly what exists.

How long does it take?

A few hundred pages take about an hour with assembly and link checking. Large sites are limited by the archive's rate limits, not by your connection — expect hours.

Will the rebuilt copy work offline?

Yes, once links point to relative paths and resources are downloaded. If the copy still requests web.archive.org, it was taken without id_ and needs re-downloading.

Do forms, search and checkout work after the rebuild?

No. The archive stores rendered pages, not the application. Anything requiring a server and a database has to be rebuilt separately.

Is it legal to rebuild a site this way?

Rebuilding your own site is fine. Republishing someone else's content is not: the content stays under copyright, and the Internet Archive has its own terms of use.

Related guides

Rebuild the copy in one pass

Site Restorer handles the list, the downloads, the assembly and the report on what came back and what is lost for good.

Download for Windows

Based on the public capabilities of the Internet Archive and hands-on recovery work. Also available in Russian. Updated 10 November 2026.