URL to HTML — get the source code of any webpage

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.

HTML to link

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.

How to convert a URL to HTML

  1. 1.

    Paste the page address into the box above. A bare domain like example.com gets https:// added for you.

  2. 2.

    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.

  3. 3.

    Read it in the HTML pane, check it in Preview, then copy it or download it as an .html file.

Ein echtes Beispiel

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.

Website to HTML, webpage to HTML or view source?

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.

Fragen zu url to html

Is this the same as View Page Source?

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.

Does it include the CSS and JavaScript?

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.

Why did a page return an error or a “blocked” page?

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.

Can I publish the HTML I fetched?

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.

Is it allowed to copy a website’s HTML?

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.

Links dauerhaft behalten

Kostenlose öffentliche Seiten bleiben zunächst 7 Tage online, private Seiten 3 Tage. Mit einem bezahlten Tarif sind dauerhafte Links möglich; für Testphasen gelten eigene Ablaufregeln.

Preise ansehen

Ähnliche Anwendungsfälle