Source Code Downloader

View and download the HTML, CSS or JavaScript source of a web page

Fetch the raw source code of any public web page or file (up to 2 MB), optionally beautified, with a summary of its title, scripts, stylesheets, images and links - ready to read, copy or download.
Try an example:

About Source Code Downloader

How it works

  1. Our server requests the URL, following redirects, exactly as a browser would request the raw file.
  2. The response is decoded using the page's character set and, if you like, re-indented with js-beautify.
  3. For HTML pages the tool counts scripts, stylesheets, images and links and shows the page title.
  4. Download saves the file with a name based on the URL and the right extension (.html, .css, .js...).

What you need

  • A public http:// or https:// URL of a web page, stylesheet, script, JSON or XML file.

Tips

  • Turn on Beautify for minified files - they become readable with proper indentation.
  • Feed the source into the Email or URL Extractor, or the HTML Tags Stripper.
  • Respect copyright: viewing source is fine, copying a site's design or content is not.

Limitations

  • This is the raw source the server sends. Content built later by JavaScript (single-page apps) is not included.
  • Pages behind a login, and files over 2 MB, are not fully available.

Runs on our server. The URL is sent to our server, which downloads the page. Nothing is stored.

Frequently asked questions

Why is the source different from what I see in my browser's inspector?+

The inspector shows the live page after JavaScript has run. This tool shows the original file sent by the server, like "View page source".

Can I download a whole website?+

No - one file at a time. Use the link counts and the URL Extractor to find related files.

Why is the file truncated?+

Downloads are limited to 2 MB to keep the tool fast and fair. Very large pages are cut off with a note.

Can I get the source of a page that needs a login?+

No. Our server visits as an anonymous visitor, so it sees the login page instead.