Free URL to HTML - View Page Source and Download HTML of Any Web Page

Description
What it does: a visitor pastes the address of a web page and sees the page's HTML source code exactly as the server sends it, the same thing a desktop browser's view-source shows, before any JavaScript runs. The source appears in a code view with syntax highlighting and line numbers, a find box that marks every match and jumps between them, and a line-wrap switch. Minified pages that arrive as one long line can be pretty-printed with one element per line, or any page minified. Next to the source the visitor sees the facts of the answer: HTTP status, final address after redirects, number of redirects, content type, charset, size, lines, and counts of elements, scripts, and comments. Plain notes say when the page was cut at the size limit, when a bot shield answered with a check page instead of the page, when the page builds its content with JavaScript, and when the page's meta charset disagrees with the one the server names. The visitor copies the source or downloads it as an .html file. HTML and XML both work, including RSS feeds, sitemaps, and SVG.
It is honest about what it is: the HTML the server sends to a tool, without your cookies or login, not the live page after scripts run (that is what the browser's inspector shows). Error pages are reported with their status instead of being shown.
Who it is for: developers checking what a server really sends, SEO specialists checking meta tags, canonical links, and structured data in the raw HTML, students learning how pages are built, and anyone on an iPhone, iPad, or Android phone, where browsers have no view-source. And site owners who want their own free view-source page.
What you get: the complete tool as one Cloudflare Worker for your own account and domain: the page, a JSON API with the source, facts, and notes, and a plain-text API that answers the source (as sent, pretty-printed, or minified), with no database, no API key, no dependencies, the Cloudflare free plan is enough. Settings (name, color, sub-path, limits) are in one config file, every text is in one file. Tests and HTML documentation included.
What you do: run npx wrangler deploy, or try it first with npx wrangler dev. Then share the page (links with ?url= show a source at once) or call api/run?url=...&format=text from your scripts.
Features
- The HTML source of any public page exactly as sent, character for character, in its own charset (UTF-8, Windows-1251, KOI8-R, Shift_JIS, ...)
- Syntax highlighting for tags, attributes, values, comments, doctype, entities, and script and style code
- Line numbers that are never copied with the text, line wrap on by default, with a switch
- Find in the source: match count, Enter and Shift+Enter, Previous and Next, Ctrl/Cmd+F inside the view
- Pretty-print minified HTML (block elements on their own indented lines, scripts, styles, pre, and textarea kept as sent) or minify it
- Response facts: status, final address, redirects, content type, charset, size, lines, elements, scripts, comments
- Notes for bot-check pages, JavaScript-built pages, pages cut at 5 MB, redirects, and charset mix-ups
- Copy, or download as .html (or .xml), named after the address
- HTML and XML: RSS and Atom feeds, sitemaps, SVG
- Made for big pages: a 5 MB source with 100,000 lines draws only the lines you scroll to, and find jumps to any match at once
- Safe by design: the source is shown only as text, so nothing in it runs or loads, one page per request, no crawling, public addresses only (checked on every redirect), an honest User-Agent, a per-visitor limit, nothing stored
- Accepts view-source: addresses, shareable links with ?url=, works on phones, with the keyboard, and inside a frame
Screenshots
Try it live: https://codemarket-live.codemarket.workers.dev/url-to-html/ (no login needed).
Categories
Tags
Built with
Products of the Week.
Submit馃
Perceptle
Perceptle is a daily browser-based game that challenges you to test your sensory intuition through five quick estimation and rhythm-based rounds.
Other 路 3,957 views 路 16 clicksOther 路 Week 47 路 3,957 views 路 16 clicks
馃
Free LinkedIn Likes From Real
Get free LinkedIn likes on your posts from real members who react by hand. No
SaaS 路 4,075 views 路 18 clicksSaaS 路 Week 47 路 4,075 views 路 18 clicks
馃
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS 路 11,557 views 路 80 clicksSaaS 路 Week 47 路 11,557 views 路 80 clicks
#4
aaas.market
407 reliable micro tools for solo founders, marketers and creators. They work in your browser
SaaS 路 3,936 views 路 7 clicksSaaS 路 Week 47 路 3,936 views 路 7 clicks



