HTML code to link
Copied some markup from a tutorial, a CodePen, a template or your editor? Paste it into the box below. The converter wraps snippets into a valid page, hosts it, and returns a link — the fastest route from code on your clipboard to something people can open.
Full documents and snippets both work
A full document starts with <!DOCTYPE html> and has <head> and <body>. A snippet is just a piece — say a <table> or a styled <div>. Both convert. Browsers are forgiving: missing <html> or <body> tags are filled in automatically when the page loads.
One thing worth adding to a snippet is <meta name="viewport" content="width=device-width, initial-scale=1">. Without it, phones render the page zoomed out as if it were a desktop site.
Preview before you convert
Press Preview under the code box to render your HTML in a sandboxed frame right here. It is the same engine your visitors will use, so what you see is what they get — minus anything that needs other files you have not included.
Keep everything inline
Pasted code is a single file, so put CSS in a <style> tag and JavaScript in a <script> tag rather than linking to local files. Images can be hosted elsewhere and referenced by full https:// URL, or embedded as data URIs. If your project already has separate files, use ZIP to link instead.
Need the link to stay online?
Free links from this converter last 24 hours. Permanent links, bigger uploads (up to 75 MB) and no badge live on our sister site htmltolink.dev — same backend, same Google sign-in. Open it, sign in with the same account, choose a plan, and the links you already made here switch to permanent. Nothing to re-upload.
Pro plans from
$5/month
See Pro on htmltolink.devSign in there with the Google account you use here.
Questions about html code to link
Is my draft saved if I close the tab?
Does JavaScript run on the converted page?
Can I use PHP or Python code?
How long can the code be?
More ways to convert HTML to a link
HTML file to link
Convert an .html or .htm file into a shareable link. Drop the file, get an https URL that opens …
ZIP website to link
Upload a ZIP of your website — HTML, CSS, JS and images — and get a working link in seconds. The…
AI-made HTML to link
Turn HTML written by ChatGPT, Claude, Gemini or Copilot into a live link you can share. Paste th…
HTML to QR code
Convert HTML into a QR code: the page gets a live link and a high-resolution QR code (1024 px PN…
Password-protected HTML link
Convert HTML to a link that asks for a password before showing the page. Server-side protection,…
Convert HTML to a link on your phone
Open an HTML file on Android or iPhone by converting it to a link — paste code or pick the file …