Paste a web address and get the HTML that page serves: read it, copy it, or download it as an .html file that still loads its images.
Get the page’s HTML source — view, copy or download it. Relative links are made absolute so the copy still works.
The page’s HTML source appears here.Have HTML of your own to put online?
The reverse trip: paste or upload your page and get a link anyone can open. No account to start.
Every web page starts life as an HTML document that a server sends to your browser. The browser then turns it into the page you see, and the document itself disappears from view. URL to HTML gets it back: give this tool an address and it fetches the page the way a browser would, then shows you the markup exactly as the site sent it.
That is useful more often than it sounds. You might want to see how a page is built, pull a table or a block of copy out of it, check which meta tags and canonical link it declares, or keep a copy of your own page before you leave a website builder. On a phone or a locked-down work laptop there is often no View page source at all. Here the source is one paste away, with a copy button and a download that keeps working after you open it offline, because relative image and stylesheet paths are rewritten to full URLs.
Paste the page address into the box above. A bare domain like example.com gets https:// added for you.
Press Get HTML. The page is fetched on our server, because a browser tab is not allowed to read another site’s page directly, and the HTML comes back unchanged.
Read it in the HTML pane, check it in Preview, then copy it or download it as an .html file.
Priya runs a small pottery studio and is moving her site off a hosted website builder whose plan renews next week. The new site will be built by a friend, who asks for "the HTML of the classes page" so the schedule table and the booking copy can be carried across instead of retyped. The builder has no export button, and Priya only has an iPad to hand.
She pastes the classes page address here and presses Get HTML. The source appears in a few seconds: 1,900 lines, most of it the builder’s own wrapper, with the schedule table sitting intact in the middle. The status line shows the address was redirected from http to the https version, which explains why her old bookmark still worked.
With Absolute URLs left on, she downloads the file and sends it to her friend. When he opens it on his laptop the photos and fonts still load, because every src="/images/…" now points at the full address on the old site. He copies the table and the class descriptions into the new layout that evening, and saves the images locally before the old plan lapses and those full addresses stop resolving.
The searches differ; the answers overlap. Pick the one that matches what you are trying to do.
You want to look at the HTML code of a website — how a page is built.
Paste the address above and read the HTML pane. On a desktop browser you can also press Ctrl+U (⌘⌥U on a Mac) or type view-source: before the address. This tool is the same view on devices that have no view-source, and it adds copy and download.
You want to download the HTML of a webpage as a file.
Fetch it, keep Absolute URLs on, and press the .html download. The file opens in any browser and still loads its images and styles from the original site for as long as that site keeps serving them. Save the images themselves if you need a copy that outlives the site.
You want the HTML of every page on a site, not just one.
This fetches one address per run and does not follow links. For a handful of pages, run each one. For a whole site, use a crawler such as wget with its mirror option, and respect the site’s robots.txt and rate limits.
The HTML is mostly scripts and the preview is nearly blank.
That site builds its content with JavaScript after it loads, so the HTML it serves really is mostly empty. Open the page in a desktop browser, wait for it to finish, and use DevTools → Elements → Copy outerHTML on the html element to get what the scripts produced.
Yes, with one difference you control. View Page Source shows the HTML the server sent, and so does the HTML pane here. The Absolute URLs option then rewrites relative addresses — /logo.png, ../css/site.css — into full ones, so the copy works away from the original site. Untick it to see the source exactly as served, byte for byte.
Whatever is written inside the HTML comes with it: inline <style> blocks, <script> blocks and style= attributes. Separate stylesheet and script files are referenced by address, not copied in, which is how the page itself works too. With Absolute URLs on, those references point at the live files, so the downloaded page still looks right.
Some sites refuse requests that do not come from a person’s browser, or show a bot check instead of the page. Pages behind a login return the login screen, because the fetch carries none of your cookies — deliberately. The tool also stops at pages larger than 2 MB, at 8 seconds, and at addresses that return something other than HTML, such as a PDF or an image.
Not from here, on purpose. Copying another site’s page and hosting it at a new address is how cloned login pages are made, so this tool has no publish step. If the page is yours, or you have written your own HTML, turn it into a link and share that.
Reading a page’s source is what every browser does to show it, and looking at it to learn how something is built is normal practice. Reusing the content is a different matter: the text, images and design belong to whoever made them. Use what you fetch for your own pages, for reference, or with permission.
Free links last 7 days with a free account. On a paid plan every page you create stays online permanently.
See pricing