Skip to content
Free converter · Google sign-in

Convert HTML code to a URL

Paste any HTML code — a full document, a snippet from CodePen, or a page an AI just wrote — and turn it into a link anyone can open.

Free: 3 URLs × 24 hours, 2 MB · custom address, password & editing included · permanent from $9

 · 
.htmltourl.dev
Stays online
24 hours on Free · keep it forever
Password protect this link

Free plan · Google sign-in · URLs are noindex · permanent from $9 · rules

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

SourceHow to get the codeWatch out for
ChatGPT, Claude, GeminiCopy the whole code block (the copy icon on the block)Answers split into several blocks — ask for "one complete HTML file"
CodePen / JSFiddleExport or copy HTML, CSS and JS into one fileCSS and JS live in separate panes — wrap them in <style> and <script>
VS Code / any editorSelect all in the .html fileRelative 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 pageView 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.

Related guides

Frequently asked questions

Can I convert just a snippet, not a whole page?

Yes. Paste a fragment and it is published inside a minimal HTML document with UTF-8 encoding and a mobile viewport, so it displays correctly on every device.

Is the code changed when it is converted?

No. Your HTML is stored and served byte for byte. The only addition on the Free plan is a small closable badge in the corner; paid plans add nothing.

How big can the HTML code be?

Up to 2 MB on Free and 25–75 MB on paid plans — far more than any hand-written page. Large sizes usually mean embedded images; that is fine.

Can I convert HTML code to a URL without signing in?

Publishing needs a one-click Google sign-in so you can edit and delete your URL later and nobody else can. To only look at the code, use the HTML viewer — no sign-in.

Other converters

Paste HTML. Get a URL.

Code, an .html file, a ZIP or a whole folder becomes a live HTTPS URL with your own address, an optional password and a QR code. Free to start with Google sign-in; paid plans keep URLs online for good.

Convert HTML to URL