Skip to content

How to Clone a Website: 4 Methods and What Breaks

How to clone a website: four methods compared, what a copy never includes (database, forms, logins) and how to move it to a new host.

Website Downloader 10 min read

To clone a website, you download its pages along with the HTML, CSS, JavaScript, images and fonts they load. The copy then opens and works from your own computer or from a new host. How to clone a website depends on how much you need: one component, one page or the entire site. Whichever method you use, a clone only captures the front end, meaning what the browser receives. The server code, the database, the forms and the logins never come along.

This guide starts by helping you work out which kind of clone you need. It then compares four methods, lists exactly what will not transfer, and explains how to get the copy running on a new domain. It ends with the legal questions, which matter more than most tutorials admit.

Which kind of clone do you need? Your own site versus someone else's design

People search for "copy a website" for very different reasons, and the right tool depends on which of these situations is yours:

  • Your own site, without admin access or on a builder you want to leave. Typical cases are a Wix, Squarespace or Jimdo site with no real export option, a site an agency built where you never received the files, or hosting that is about to expire. In all of these, you need a full-site clone: every subpage plus its assets, ready to host somewhere else. A website copier that crawls the whole site is the right tool.
  • Your own site, with admin access. If you can log into WordPress, cPanel or your server, the platform's own migration or backup tools are better. They copy the database and server code, which a front-end clone cannot do. A static clone still makes sense here as an extra snapshot, or if you want to turn the site into plain HTML.
  • Someone else's site, as a design reference. Perhaps you want to study how a layout, an animation or a navigation pattern is built. Browser developer tools or a single saved page are usually enough. Publishing the result is a different matter, covered in the legal section below.
  • A site that no longer exists. A clone of the live site is impossible here, but you can rebuild it from the Internet Archive with the Wayback Machine downloader.

How to clone a website: 4 methods compared

Four approaches cover almost every need. They differ mainly in scope (one element, one page or the whole site) and in what you need to install.

1. Browser DevTools: copy one component

Right-click an element and choose Inspect. You can copy its HTML from the Elements panel and read its CSS from the Styles panel. This is the most precise way to clone website HTML and CSS for a single button, card or header. It is also the slowest, because styles are often spread across many rules and files, and you have to rebuild them by hand. It works well for learning and is impractical for anything larger than a section.

2. "Save page as": copy one page

Press Ctrl+S (Cmd+S on a Mac) and choose Webpage, Complete. The browser saves one HTML file plus a folder of the images, stylesheets and scripts that page uses. This is fine for a landing page or a one-page site. Links to subpages still point at the live site, and fonts or images loaded by CSS or JavaScript are sometimes missed.

3. HTTrack or wget: copy the whole site from your computer

HTTrack is a free desktop website copier, and wget is a command-line tool that ships with most Linux systems. Both follow links from page to page and rewrite them so the copy works offline. A typical wget command looks like this:

wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://example.com/

Both are powerful and free. The downsides are installation, a learning curve, and a computer that has to stay on until the crawl finishes. Common problems include a 403 Forbidden error and copies that contain only the start page. For a detailed comparison, see wget vs HTTrack vs an online website downloader.

4. Online website downloader: copy the whole site without installing anything

A browser-based service such as Website Downloader crawls the site on its own servers and delivers every subpage, image, stylesheet, script, font and media file as one ZIP. It needs no installation and runs on Windows, macOS, Linux, Chromebooks and tablets. You can also close your laptop while the download runs.

MethodScopeInstall neededBest forMain limit
DevToolsOne elementNoLearning how something is builtManual, slow
Save page asOne pageNoSingle landing pagesNo subpages, missed assets
HTTrack / wgetWhole siteYesTechnical users, large jobsSetup, computer must stay on
Online downloaderWhole siteNoQuick full clones on any devicePage limits per plan

Step by step: clone a whole website as a ZIP without installing anything

  1. Open the home page and paste the site's address, for example https://example.com, into the download field.
  2. Start the download. You can watch the progress live as pages are counted. Your computer does not need to stay on during the crawl.
  3. Download the finished ZIP and unpack it.
  4. Open index.html in any browser and click through a few subpages to check that images, styles and navigation work.
A full clone takes three steps: enter the address, let the crawl count the pages, and download the finished ZIP that opens offline.

The Free plan needs no account and covers up to 100 subpages. That archive is kept for 1 day, so download it promptly. Larger sites need either the Single Site plan (a one-time 7.99 EUR, up to 5000 subpages and 2 GB, kept 30 days) or a monthly plan that can be cancelled at any time. Details are on the pricing page. For more on what ends up in the archive, read download a website as ZIP online.

What a clone can't copy: server code, database, forms, search and logins

This is the part most cloning guides skip. A server-built site and a static clone are different things. The live site is a program running on a server: every time you load a page, code such as PHP, Python or Node.js reads the database and assembles the HTML. A clone only captures that finished HTML and the files it references. You get the output, not the machine that produced it.

Files the browser can handle on its own work in a clone. Anything that needs the original server to respond does not.

Concretely, a clone does not include:

  • Server-side code. The templates and scripts that generate pages are never sent to the browser, so no method can download them.
  • The database. Posts, products, user accounts, orders and settings exist in the clone only as already rendered pages, not as editable records.
  • Forms. Contact and newsletter forms submit to the original server. In the clone, they either fail or send data to the old site.
  • Search. Site search queries the server, so the search box returns nothing.
  • Carts, checkout and comments. All of these need a server to store and process data.
  • Pages behind a login. Members' areas, dashboards and customer accounts are not downloaded.

If you plan to use the clone as a live site, each of these needs a replacement. Forms can go through a hosted form service. Search can be handled by a small client-side search script. Comments and shops can move to embedded third-party tools. For an archive or a design reference, you can simply accept that these features no longer work.

Cloning JavaScript-built sites: why the copy comes out blank

Some sites, especially single-page apps built with React, Vue or Angular, send the browser an almost empty HTML file. JavaScript then fetches the content and builds the page on the fly. A cloning tool that saves the HTML can end up with only that shell: a header, perhaps, and a blank area where the content should be.

To check before you start, open the site and press Ctrl+U to view its source. If the visible text appears in the source, the site will clone well. If the body holds little more than <div id="root"></div> and a few script tags, expect a hollow copy. If it is your own app, the framework's static export or prerendering option is the better route, since it produces real HTML for every page. The full explanation is in why copies of JavaScript websites go blank.

A copy can also look broken for a more ordinary reason: some sites refuse automated downloads with a 403 response. Website Downloader reports this instead of handing you an empty archive. If pages load but look unstyled, see downloaded website missing images and CSS.

How to clone a website to a new domain or host: links, paths and branding

An offline clone and a clone that runs correctly on a new domain are not quite the same thing. Work through these points before you upload.

Moving a site means taking a copy off the old host as a ZIP, fixing anything tied to the old domain, and uploading the folder to the new host.

Fix links and asset paths

  • Search for the old domain. Open the unpacked folder in a code editor with "find in files" (VS Code, Sublime Text and others have it) and search for https://old-domain.com. Replace it with the new domain, or with / to make links relative.
  • Check the metadata. Canonical tags, og:url tags, sitemap.xml and robots.txt often hard-code the old address. If you leave them, search engines may treat the new site as a duplicate of the old one.
  • Keep the folder structure. index.html belongs in the web root, and subpages stay in their folders. Most hosts serve /about/index.html at /about/, so clean URLs keep working.

Replace branding and tracking

  • Swap the logo and favicon files, and update the <title> tags, the footer text and the contact details.
  • Remove the old site's analytics, ad and chat scripts, or replace the IDs with your own. Otherwise your visitors are counted in someone else's account.
  • Check embedded fonts and stock images. Their licences may cover only the original site.

Upload

Because the clone is plain files, it runs on any ordinary web hosting. You can upload it with SFTP or the host's file manager, or deploy it to a static host such as Netlify, GitHub Pages or Cloudflare Pages. If you own the old domain, set up 301 redirects from it so existing links and search rankings carry over. If you are leaving a host, our guide to backing up a website before cancelling hosting covers what to keep besides the clone.

Is it legal to clone a website? Your own content, someone else's design

This is general information, not legal advice. The answer depends on your country and your situation.

  • Your own site is generally yours to copy and move. Watch out for parts you only licensed, though. Themes, stock photos, fonts and plugins sometimes come with licences tied to one site or one platform. Some builders' terms also restrict reusing their templates outside the platform.
  • Someone else's site is a different case. Its text, images and code are normally protected by copyright, and its logo and name may be trademarks. Studying a site privately to learn how it works is very different from republishing it. In many countries, publishing a copy of another site's content or code, even with new branding, can infringe copyright. A look-alike that could confuse visitors can raise trademark or unfair-competition issues as well. General layout ideas are usually not protected, but the specific code, wording and graphics usually are.
  • Impersonation, such as cloning a bank or shop login page, is fraud almost everywhere.

If you plan to publish something based closely on another site, or you have received a complaint about a copy, talk to a lawyer in your jurisdiction.

FAQ: cloning WordPress sites, the backend and reusing the code

How do I clone a WordPress site to another server or domain?

With admin access, use a migration plugin or copy the files and export the database. Then update the site URL in the settings or the database on the new server. This keeps the editor, plugins and content fully working. Without admin access, you can only make a static clone of the public pages, as described in convert WordPress to static HTML.

Can I clone a website's backend or database?

Not from the outside. Server code and database contents are never sent to the browser, so no downloader, desktop tool or browser trick can retrieve them. The only way to get them is through access to the server or the platform's admin export.

Can I use a cloned site's HTML, CSS and JavaScript for my own new site?

If the site is yours, yes, apart from any third-party assets whose licences say otherwise. If it belongs to someone else, treat the clone as study material. Learn from the structure, then write your own code and use your own content instead of republishing theirs.

Why is my cloned website blank or broken?

A blank copy usually means the site builds its content with JavaScript, so the tool captured only the page shell. Missing styles or images usually mean absolute links still point at the original domain, or assets were loaded by scripts the tool could not follow. The FAQ and the troubleshooting articles linked above cover both cases.

  • how to clone a website
  • website cloning
  • website copier
  • site migration
  • static websites