By Rajesh Kannan, Co-Founder & CTO, Gramosoft · Last updated: · Tested on a local test site with GNU Wget 1.21.4 and Chromium on November 24, 2026; tool facts checked on each project's own pages

To download a website as a ZIP that still works offline, every page has to be saved with its stylesheets, images, scripts and fonts, and every link rewritten to point at the local copy. Static sites are easy: wget or HTTrack does it for free. Sites built by JavaScript are not, because those tools save the HTML the server sends, not the page your browser draws. This guide starts with GcrawlAI's Offline Bundle, which renders each page in a real browser before packing the ZIP, then covers wget, HTTrack and desktop apps, a test of what each one actually saves, and a script that checks any copy before you rely on it.

TL;DR

  • Rendered sites: GcrawlAI's Offline Bundle loads each page in a real browser, collects HTML, CSS, JavaScript, images, media and fonts, and returns one ZIP. One request per page, failed pages never charged, 50 free requests a month.
  • Static sites: wget --mirror --convert-links --adjust-extension --page-requisites --no-parent is free and fast. Add --span-hosts --domains= so fonts and images from your CDN come too.
  • What we found: on our test site, wget saved a JavaScript product page as 51 characters ("Loading…"), left a lazy image without a source and a font on the live CDN. A browser capture saved 1,484 characters on the same page and nothing left online.
  • Always check the copy: our checker script flags thin pages, missing files, files still loaded from the internet, links that break when opened from disk, and lazy images.

How do you download an entire website as a ZIP? For a static site, mirror it with wget or HTTrack and zip the folder. For a site built with JavaScript, use a tool that renders each page in a real browser first, such as GcrawlAI's Offline Bundle. Then serve the extracted copy locally and check every page before relying on it.

Download a website as a ZIP with GcrawlAI Offline Bundle

GcrawlAI's Offline Bundle turns a URL into one ZIP of rendered pages and the files they load. It opens each page in a real browser through a residential IP, waits for scripts to finish, collects HTML, CSS, JavaScript, images, media and fonts, and returns a download link. One page or a whole site, from the Playground or the API.

GcrawlAI homepage with the logo and menu (Products, Playground, Extractors, Docs, Pricing, Blog, Use Cases, Custom Request): Transform any website into structured LLM-ready data, the open-source web scraping API for AI agents, RAG pipelines and data teams, with JavaScript rendering, anti-bot stealth and proxies included in every request and no credit system; tabs for Scrape, Map, Crawl, Batch, Screenshot, Search and Smart Answer
The GcrawlAI homepage; the Offline Bundle sits under Products (screenshot taken October 26, 2026).

You can run it without code on the Offline Bundle page: paste a URL, choose one page or several, and download the ZIP. For repeat jobs, the Python SDK does the same in a few lines, and the script below also runs the copy checker from later in this guide on the result.

download_site_zip.py

"""Download a website as a ZIP with the GcrawlAI Offline Bundle API, then check the copy.

pip install gcrawl-sdk requests beautifulsoup4
export GCRAWL_API_KEY=gc-YOUR_API_KEY
python download_site_zip.py https://example.com/ 25
"""
import os
import sys

import requests
from gcrawl_sdk import GcrawlClient, OfflineBundleOptions

from check_offline_copy import check, report


def download_site(client, url, max_pages=25, geo="US", out="site.zip"):
    job = client.offline_bundle(
        url,
        options=OfflineBundleOptions(
            type="multi_page", max_pages=max_pages, geo=geo,
            html=True, css=True, js=True, images=True, media=True, fonts=True,
        ),
        wait=True,                      # poll until the bundle is ready
    )
    if not job.is_completed or not job.zip_url:
        raise SystemExit(f"bundle not ready: {job.status}")
    with requests.get(job.zip_url, stream=True, timeout=300) as r:
        r.raise_for_status()
        with open(out, "wb") as f:
            for block in r.iter_content(1 << 16):
                f.write(block)
    print(f"{out}: {getattr(job, 'pages_crawled', '?')} pages, {getattr(job, 'files_count', '?')} files, "
          f"{os.path.getsize(out):,} bytes")
    return out


if __name__ == "__main__":
    site = sys.argv[1] if len(sys.argv) > 1 else "https://example.com/"
    pages = int(sys.argv[2]) if len(sys.argv) > 2 else 25
    client = GcrawlClient(api_key=os.environ.get("GCRAWL_API_KEY", "gc-YOUR_API_KEY"))
    report(check(download_site(client, site, pages)), "offline check")
Packing slip diagram of GcrawlAI Offline Bundle: a URL and options go in, GcrawlAI loads each page in a real browser through a residential IP, waits for scripts and lazy content, collects HTML, CSS, JavaScript, images, media and fonts, rewrites links to local paths, packs one ZIP and returns a download link; your script downloads it and runs the offline checker. One request per page; failed pages not charged
How an Offline Bundle is packed: render, collect, rewrite links, ZIP, then check.
  • One page or a whole site: type="single_page" saves one page; type="multi_page" follows same-site links up to max_pages, with include_subdomains when the blog or docs live on another subdomain.
  • Choose what goes in the ZIP: switch HTML, CSS, JavaScript, images, media and fonts on or off, for example to skip video on a large archive.
  • Rendered, not just fetched: every page loads in a real browser, so pages built by React, Vue, Webflow, Framer or Wix arrive with their content. Rotating residential IPs and stealth escalation for Cloudflare, DataDome and PerimeterX are inside the same request.
  • Country you choose: geo loads the site from a given country, useful when a site shows different prices or language by region.
  • How you connect: the managed Cloud API, the Python SDK, MCP for AI agents, the Playground, or the MIT-licensed core on your own servers. The same key also does crawl, map, scrape and screenshots.
  • Billing: one request per page, whatever rendering or proxies it needs. Failed pages, blocks and timeouts are never charged. 50 free requests a month with no card, then $0.67 to $9.67 per 1,000.

Where it falls short: for a small static site, wget is free and just as good. There's no "update the existing mirror" mode like HTTrack's, so a refresh is a new bundle. Like every downloader, it saves what a visitor can see: logins, search, forms, checkout and databases stay on the original server. Self-hosting the open-source core means bringing your own proxy accounts.

"Most broken offline copies aren't broken by the downloader. They're broken because the page never existed as HTML in the first place. If a browser has to build it, a browser has to save it."

Rajesh Kannan, Co-Founder & CTO at Gramosoft

Five ways to download a website, compared

The right tool depends on one question: does the server send finished HTML, or does JavaScript build the page in the browser? Save Page As handles one page, wget and HTTrack handle static sites for free, desktop apps add a window, and a rendering tool handles everything a browser draws.

Method Runs JavaScript Rewrites links Gives you a ZIP Best for
GcrawlAI Offline Bundle Yes, real browser per page Yes Yes, a download link JavaScript sites, repeat jobs, many sites through an API
Browser Save Page As Saves what has rendered No No, one HTML file and a folder A single page, once
GNU Wget No Yes, with --convert-links Zip the folder yourself Static sites, blogs, docs, scripts
HTTrack No, parses some links in scripts Yes Zip the folder yourself Static sites, updating a mirror you keep
Cyotek WebCopy, SiteSucker No Yes Zip the folder yourself Static sites without a terminal

HTTrack is free software under the GPL, with versions for Windows, macOS, Linux and other Unix systems; it can update an existing mirror and resume interrupted downloads. Its own docs note that most offline browsers can't properly understand JavaScript. Cyotek WebCopy is a free Windows tool, and Cyotek says WebCopy does not include a virtual DOM or any form of JavaScript parsing. SiteSucker is a macOS app built on the same idea.

Mirror a static site with wget and zip it

For a site the server sends as finished HTML, wget is the free answer: one command follows every link, saves each page's images, stylesheets and scripts, and rewrites links so the copy works from disk. The two flags most guides leave out are the ones that fetch fonts and images from a second host.

mirror.sh

# Mirror a static site with wget, fetch the files it loads from your CDN host, then zip it.
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent \
     --span-hosts --domains=example.com,cdn.example.com \
     --wait=1 --random-wait https://example.com/
zip -r example-site.zip example.com cdn.example.com

# Test the copy through a local server, not file://
python3 -m http.server 8000      # then open http://localhost:8000/example.com/
  • --mirror turns on recursion and timestamps; --no-parent keeps it inside the folder you start from.
  • --page-requisites downloads all the files necessary to properly display each page: images, sounds and stylesheets (GNU Wget manual).
  • --convert-links rewrites links after the download so they point at your local files, including images and stylesheets.
  • --span-hosts with --domains lets wget fetch files from your CDN host. The manual notes that --domains alone does not turn spanning on, which is why fonts so often stay online.
  • --wait=1 --random-wait paces requests so you don't load someone's server.

What wget can't do is run the page's JavaScript. If the site builds its content in the browser, the saved pages will look empty, which is exactly what our test shows next.

We tested it: what wget saves vs what a browser sees

We built a five-page test site: three static pages, a home page with a lazy-loaded image, a products page drawn by JavaScript from a JSON API, and a font served from a second host. Then we downloaded it four ways and ran the checker below on each ZIP. Every number comes from that run on November 24, 2026.

Inspection report comparing four copies of a five-page test site: wget without convert-links (products page 51 characters, 28 root-relative links, lazy image unresolved), standard wget (51 characters, font still online, lazy image unresolved), wget with span-hosts (51 characters, lazy image unresolved), and a rendered browser capture (1,484 characters, all checks pass)
Our local test, November 24, 2026: only the rendered capture saved the JavaScript products page and the lazy image.
Copy Products page text Lazy image Font Links opened from disk
wget, no --convert-links 51 characters ("Loading…") No source Not followed 28 root-relative links that break
wget, standard command 51 characters No source Still loaded online Work
wget + --span-hosts --domains 51 characters No source Saved locally Work
Rendered browser capture 1,484 characters, 12 products Saved Saved locally Work

lab_output.txt (printed output)

wget_noconvert.zip: 5 pages
  page                                     text  missing  online  /root  lazy
  127.0.0.1:8701/about.html                 606        0       0      6     0
  127.0.0.1:8701/app.html                    51        0       0      5     0  <- thin page
  127.0.0.1:8701/blog/first-post.html       987        0       0      6     0
  127.0.0.1:8701/blog/second-post.html      618        0       0      6     0
  127.0.0.1:8701/index.html                 540        0       0      5     1
  thin pages: 1; files still loaded online: none
wget_copy.zip: 5 pages
  page                                     text  missing  online  /root  lazy
  127.0.0.1:8701/about.html                 606        0       1      0     0
  127.0.0.1:8701/app.html                    51        0       1      0     0  <- thin page
  127.0.0.1:8701/blog/first-post.html       987        0       1      0     0
  127.0.0.1:8701/blog/second-post.html      618        0       1      0     0
  127.0.0.1:8701/index.html                 540        0       1      0     1
  thin pages: 1; files still loaded online: ['http://localhost:8702/brand.woff2']
wget_span.zip: 5 pages
  page                                     text  missing  online  /root  lazy
  127.0.0.1:8701/about.html                 606        0       0      0     0
  127.0.0.1:8701/app.html                    51        0       0      0     0  <- thin page
  127.0.0.1:8701/blog/first-post.html       987        0       0      0     0
  127.0.0.1:8701/blog/second-post.html      618        0       0      0     0
  127.0.0.1:8701/index.html                 540        0       0      0     1
  thin pages: 1; files still loaded online: none
render_copy.zip: 5 pages
  page                                     text  missing  online  /root  lazy
  about.html                                606        0       0      0     0
  app.html                                 1484        0       0      0     0
  blog/first-post.html                      987        0       0      0     0
  blog/second-post.html                     618        0       0      0     0
  index.html                                540        0       0      0     0
  thin pages: 0; files still loaded online: none

Two honest notes. First, wget did everything it promises: all five pages, all static images, rewritten links, in a fraction of a second. Its limits are JavaScript, lazy images whose real address sits in data-src, and files on other hosts unless you allow them. Second, we couldn't call GcrawlAI's API from our test machine, so the browser row is a small Playwright capture we wrote for the test (it's in the code download). It shows what rendering changes, not GcrawlAI's own output, and we'd like readers to run the same checker on an Offline Bundle ZIP of their own site.

How to check a downloaded website before you rely on it

A ZIP that downloads without errors can still be a broken copy. Check it the way a reader will use it: serve it locally, click through every page, turn the network off, and look for pages that came out empty. The script below does the file checks for you on a folder or a ZIP.

check_offline_copy.py

"""Check a downloaded website (a folder or a .zip) before you rely on it offline.

For every saved HTML page it reports: how much visible text the page has, local files that are
referenced but missing, files that still load from the internet, root-relative links ("/...") that
break when the page is opened from disk, and lazy images that never got a real src.

python check_offline_copy.py site.zip            # or a folder
"""
import os
import re
import sys
import tempfile
import zipfile
from urllib.parse import unquote, urlparse

from bs4 import BeautifulSoup        # pip install beautifulsoup4

THIN_PAGE = 200                      # visible characters; below this a page is probably an empty shell


def refs(soup):
    """Every URL a page needs: links, scripts, images, srcset entries and inline CSS url()."""
    out = []
    for tag, attr in (("a", "href"), ("link", "href"), ("script", "src"), ("img", "src"),
                      ("source", "src"), ("video", "src"), ("audio", "src"), ("iframe", "src")):
        out += [t.get(attr) for t in soup.find_all(tag) if t.get(attr)]
    for t in soup.find_all(srcset=True):
        out += [part.strip().split(" ")[0] for part in t["srcset"].split(",") if part.strip()]
    styles = " ".join(s.get_text() for s in soup.find_all("style"))
    styles += " ".join(t["style"] for t in soup.find_all(style=True))
    out += re.findall(r"url\(\s*['\"]?([^'\")]+)", styles)
    return [r for r in out if not r.startswith(("#", "data:", "mailto:", "tel:", "javascript:"))]


def check_file(root, rel_path, text):
    soup = BeautifulSoup(text, "html.parser")
    for s in soup(["script", "style", "noscript"]):
        s.extract()
    visible = len(" ".join(soup.get_text(" ").split()))
    soup = BeautifulSoup(text, "html.parser")
    todo = [(os.path.dirname(rel_path), ref) for ref in refs(soup)]
    for link in soup.find_all("link", rel="stylesheet"):        # url() inside a local stylesheet is
        p = os.path.normpath(os.path.join(os.path.dirname(rel_path),   # relative to that stylesheet
                                          unquote(link.get("href", "").split("?")[0])))
        if os.path.isfile(os.path.join(root, p)):
            css = open(os.path.join(root, p), errors="ignore").read()
            todo += [(os.path.dirname(p), ref) for ref in re.findall(r"url\(\s*['\"]?([^'\")]+)", css)
                     if not ref.startswith("data:")]
    r = {"page": rel_path, "text": visible, "missing": [], "online": [], "root_relative": [],
         "lazy": [i.get("data-src") for i in soup.find_all("img") if i.get("data-src") and not i.get("src")]}
    for base, ref in todo:
        u = urlparse(ref)
        if u.scheme in ("http", "https") or ref.startswith("//"):
            r["online"].append(ref)
        elif ref.startswith("/"):
            r["root_relative"].append(ref)
        else:
            target = os.path.normpath(os.path.join(base, unquote(u.path)))
            if target.endswith(os.sep) or os.path.isdir(os.path.join(root, target)):
                target = os.path.join(target, "index.html")
            if not os.path.exists(os.path.join(root, target)):
                r["missing"].append(ref)
    return r


def check(path):
    root = path
    if zipfile.is_zipfile(path):
        root = tempfile.mkdtemp()
        zipfile.ZipFile(path).extractall(root)
    results = []
    for d, _, files in os.walk(root):
        for name in sorted(files):
            if name.endswith((".html", ".htm")):
                full = os.path.join(d, name)
                results.append(check_file(root, os.path.relpath(full, root), open(full, errors="ignore").read()))
    return sorted(results, key=lambda r: r["page"])


def report(results, label):
    print(f"{label}: {len(results)} pages")
    print(f"  {'page':38} {'text':>6} {'missing':>8} {'online':>7} {'/root':>6} {'lazy':>5}")
    for r in results:
        flag = "  <- thin page" if r["text"] < THIN_PAGE else ""
        print(f"  {r['page'][-38:]:38} {r['text']:>6} {len(r['missing']):>8} {len(set(r['online'])):>7} "
              f"{len(set(r['root_relative'])):>6} {len(r['lazy']):>5}{flag}")
    thin = [r["page"] for r in results if r["text"] < THIN_PAGE]
    online = sorted({u for r in results for u in r["online"]})
    print(f"  thin pages: {len(thin)}; files still loaded online: {online or 'none'}")
    return results


if __name__ == "__main__":
    for target in sys.argv[1:] or ["site.zip"]:
        report(check(target), os.path.basename(target))
Pre-ship checklist for a downloaded website: run the checker, serve the folder locally, click every menu link at desktop and mobile widths, go offline and reload, read the browser console for failed requests, label the ZIP with site and date
Six checks before you rely on a downloaded website.
  1. Run the checker on the ZIP. A "thin page" under 200 visible characters is usually an empty JavaScript shell, a consent wall or a login screen.
  2. Serve the folder with python3 -m http.server 8000 instead of double-clicking index.html. Browsers block many scripts and root-relative links on file://.
  3. Click every menu link at desktop and mobile widths, and open the pages that matter to you, not just the home page.
  4. Go offline and reload. Anything that disappears was still loading from the internet.
  5. Read the browser console for failed requests: they name the files the copy is missing.
  6. Label the ZIP with the site and the download date, and keep it unchanged as your reference copy.

Why a downloaded website looks broken, and the fix

Almost every broken offline copy comes down to five causes: the page was built by JavaScript, images load only as you scroll, links still point to the live site, files came from another host, or a feature needs a server. Each has a clear symptom and fix.

What you see Cause Fix
Blank page, "Loading…" or no products JavaScript builds the content; the tool saved the server's HTML Use a rendering tool such as GcrawlAI's Offline Bundle
Some images missing Lazy loading: the real address is in data-src or set on scroll Render and scroll before saving; the checker counts these
Links open the live site, or nothing works from disk Links not rewritten, or root-relative links on file:// wget --convert-links; serve the folder locally
Wrong fonts or icons Files on a CDN host weren't downloaded wget --span-hosts --domains=, or a tool that saves every file the page loads
Search, forms, logins or checkout do nothing They need the original server and database Not fixable in a ZIP; keep a server backup for that

If the pages you need sit behind bot protection, a downloader gets the challenge page instead of the content. Our guides to Imperva-protected sites and JavaScript-heavy sites explain why, and for a list of every URL before you download, see how to crawl an entire website.

What downloading a website costs with GcrawlAI

A single-page bundle is one request, and a multi-page bundle is one request per page saved, whatever rendering, proxies or retries each page needs. Failed pages are never charged. wget and HTTrack are free, so GcrawlAI pays off on JavaScript sites, protected sites and repeat jobs.

  • One 40-page portfolio site, once: 40 requests, inside the free 50 a month.
  • A weekly archive of a 200-page site: about 870 requests a month, inside Starter's 3,000.
  • Monthly ZIPs of 100 client sites at 300 pages each: 30,000 requests, inside Growth's 50,000.
Plan Price Requests/month Concurrent Per 1,000 Overage per 1,000
Free $0, no card 50 2 – –
Starter $29 3,000 5 $9.67 $10.83
Growth $79 50,000 15 $1.58 $1.77
Pro $199 150,000 25 $1.33 $1.49
Scale $499 750,000 50 $0.67 $0.75
Enterprise Volume pricing 2M+ 300+ – –
Self-hosted $0 (MIT) Your servers Your workers Infrastructure only –

Annual billing charges 10 months for 12, unused requests on paid plans roll over to the next billing period, and Indian customers are billed in INR with a GST invoice (INR prices exclude 18% GST). See pricing.

Downloading your own site, a client's site with written permission, or content whose license allows copying is fine. Being able to see a page doesn't give you the right to republish its text, images, design or fonts. Don't bypass logins or paywalls, and pace requests so you don't load the server. This isn't legal advice.

GcrawlAI saves public pages only; it doesn't sign in, and it doesn't give you permission a site's terms withhold. For the wider picture, read What Is Web Scraping? How It Works, Uses & Legality.

Which website downloader should you use?

Choose by how the site is built and how often you need the copy. One page: save it in the browser. A static site, once: wget or HTTrack. A JavaScript site, a protected site, or the same job every week: a rendering tool through an API. GcrawlAI fits each row, from a check to the whole job.

If you need… Use Where GcrawlAI fits
One page, right now Save Page As A single-page Offline Bundle when the page is built by JavaScript
A static site or docs, once wget or HTTrack Run the checker on the result; use the Offline Bundle if pages come out thin
A Webflow, Framer, Wix or React site A rendering downloader Offline Bundle renders every page in a real browser
A site behind Cloudflare or similar A tool with residential IPs and stealth Included in every Offline Bundle request
Weekly or monthly archives of many sites An API you can schedule Python SDK, async jobs and webhooks
Text for an AI or RAG pipeline, not a browsable copy Markdown, not a ZIP Crawl returns clean Markdown per page

"A downloaded website is a backup you haven't tested yet. Run a check on the ZIP the day you make it, not the day you need it."

Rajesh Kannan, Co-Founder & CTO at Gramosoft

Frequently asked questions

How do I download an entire website as a ZIP for free?

For a static site, run wget with --mirror --convert-links --adjust-extension --page-requisites --no-parent, or use HTTrack, then zip the folder. For a site built with JavaScript, GcrawlAI's Offline Bundle renders each page first; its free plan covers 50 pages a month with no card.

Why is my downloaded website blank or missing images?

The site builds its content with JavaScript, or loads images only as you scroll, and your tool saved the HTML the server sent. wget, HTTrack and WebCopy don't run JavaScript. Use a tool that renders and scrolls each page in a real browser, then check the copy with a script.

What is "web to zip"?

"Web to zip" means turning a website, or one page of it, into a single ZIP file of its HTML, CSS, JavaScript, images and fonts, with links rewritten so it opens offline. GcrawlAI's Offline Bundle does this from a URL, in the browser or through its API.

How do I open a downloaded website offline?

Extract the whole ZIP, keep the folders together, and serve it with python3 -m http.server 8000 inside the folder, then open the address it prints. Double-clicking index.html loads it from file://, where browsers block many scripts and root-relative links. Keep the original ZIP unchanged as your reference copy.

Can I download a website's database, logins or forms?

No. Every website downloader copies what a visitor sees: pages, styles, scripts, images and fonts. Databases, accounts, search, form handling and checkout run on the server, so they never come with the ZIP. Keep a separate server backup if you need to restore those.

Is GcrawlAI open source, and what does a website ZIP cost?

Yes, the core is MIT-licensed and self-hostable, with a managed Cloud API, Python SDK and MCP server. A website ZIP costs one request per page saved, failed pages are never charged, and you get 50 free requests a month, then $0.67 to $9.67 per 1,000.

Is it legal to download a whole website?

Downloading your own site or one you have permission to copy is fine. Republishing someone else's text, images, design or fonts isn't covered by being able to view them, and you shouldn't bypass logins or paywalls. Pace your requests and respect the site's terms.

RK

Rajesh Kannan M

Rajesh Kannan M is Co-Founder & CTO of Gramosoft in Chennai, where he leads the team building GcrawlAI, an open-source web scraping, crawling and Search API platform for developers and AI agents. LinkedIn

Download your website as a ZIP that actually works offline

Start with 50 free requests a month, no card. GcrawlAI's Offline Bundle renders every page in a real browser and packs HTML, CSS, JavaScript, images and fonts into one ZIP, one request per page, through the Playground, Cloud API, Python SDK or MCP, or self-hosted under MIT. Failed pages are never charged.

CTA Illustration