Web Source Viewer

View formatted HTML source code from a URL for learning, debugging, and page structure analysis.

Source Viewer

View page source tool

Load page source from a URL or paste HTML directly. The source stays in a textarea and is not executed while viewed. The tool counts title length, elements, links, and images, and can normalize, copy, or download the source. External URL loading is subject to same-origin and CORS headers.

Safe text viewing

Source stays in a textarea rather than a preview DOM, so page scripts are not run by viewing it.

Quick source stats

See title length, DOM element, link, and image counts to understand page size quickly.

Normalize and download

Browser DOM parsing can produce normalized HTML for further inspection or saving as a standalone file.

How to use

  1. Enter a complete http or https URL and load it, or paste HTML into the source box.
  2. Analyze the source for statistics, or normalize HTML when you need a consistent structure.
  3. Copy the source for debugging or download an HTML file to save the current version.

FAQ

Why did URL loading fail?

Browser scripts need CORS permission from another domain to read its response. The URL may also be missing, protected, unavailable, or rejecting the request. Paste copied source manually when needed.

Does normalization preserve formatting?

It does not guarantee original whitespace, attribute order, or comment formatting. Browser DOM serialization is useful for structure inspection, not as a replacement for version-controlled source.

Recommended utilities

You may also need these file utilities