Paste, publish, share
Put the code in the box above and press Get my URL. The converter wraps a snippet in a proper document if it needs one, hosts it on its own subdomain and returns an address such as https://pricing-draft.htmltourl.dev/. The whole round trip takes about a second, so you can paste, check the live page, tweak the code and publish again at the same URL as many times as you like.
What counts as "HTML code"
- A full document starting with
<!DOCTYPE html>— published exactly as written. - A fragment such as a
<table>, a form or an email template — rendered inside a minimal page with UTF-8 and a mobile viewport, so accents, emoji and phones all work. - HTML with inline CSS and JavaScript in
<style>and<script>tags — the most portable kind, because there are no other files to lose. - HTML that loads libraries from a CDN (Tailwind, Chart.js, Three.js, Alpine) — works, because the page runs on a normal HTTPS origin.
If the code references local files like style.css or images/logo.png, those files are not in the paste. Either inline them (the data URL tool turns an image into text you can paste) or upload the folder instead with ZIP to URL.
Where people copy HTML code from
| Source | How to get the code | Watch out for |
|---|---|---|
| ChatGPT, Claude, Gemini | Copy the whole code block (the copy icon on the block) | Answers split into several blocks — ask for "one complete HTML file" |
| CodePen / JSFiddle | Export or copy HTML, CSS and JS into one file | CSS and JS live in separate panes — wrap them in <style> and <script> |
| VS Code / any editor | Select all in the .html file | Relative links to other files in the project |
| Email builders | "Export HTML" or "View code" | Images hosted on the builder's CDN may expire |
| A web page | View source (Ctrl/⌘ + U) | Only republish pages you own or have rights to |
Check the code before you share the URL
Press Preview under the box to render the page right here. For bigger jobs the HTML preview editor shows code and result side by side, and the HTML viewer lets you check phone and tablet widths. A page that looks tiny on a phone is almost always missing <meta name="viewport" content="width=device-width, initial-scale=1">.
After publishing
Your URL appears in My links with buttons to copy it, show a QR code, update the code or delete the page. Updating keeps the address, so a link you already sent never breaks. Free URLs stay up for 24 hours; a paid plan keeps them online permanently.