HTML to data URL
Runs entirely in your browser — nothing you type here is uploaded.
Where data URLs work
- Pasted into the address bar — the page renders (handy for quick tests).
- Inside an iframe —
<iframe src="data:text/html;base64,…">works in all modern browsers. - Images and fonts —
data:image/png;base64,…is a common way to inline small assets.
Where they fail
Chrome and Edge (since 2017) and Firefox (since 2018) block top-level navigation to data: URLs started by a link or script, because the trick was widely used for phishing. So a data URL sent in a chat or email will not open when tapped. They also get long fast: Base64 adds about a third to the size, and many chat apps cut messages or refuse URLs over a few thousand characters.
For anything you want other people to open, a hosted link — https://name.htmltolink.dev/ — is short, opens everywhere, and can be updated later.
Questions
Base64 or percent-encoding?
Is a data URL private?
Can I share a data URL as a QR code?
More free link tools
URL to HTML link generator
Turn any URL into HTML link code: set the link text, open in new tab, nofollow, sponsored …
Bulk URL to HTML links
Paste a list of URLs (one per line, optional link text) and convert them all to HTML links…
Text to clickable links
Paste plain text containing web addresses and emails — get HTML where every URL and email …
HTML link extractor
Paste HTML source and extract every link: href URLs with their anchor text, plus images, s…
Mailto link generator
Create a mailto link with recipients, CC, BCC, subject and body text — correctly URL-encod…
HTML button link generator
Generate an HTML button that links to a URL: styled <a> tag with your colours and corner r…
HTML previewer
Type or paste HTML and see it rendered live in a sandboxed frame, at phone, tablet or desk…