URLs to HTML Links
Convert urls to html links using the available input and format options.
About URLs to HTML Links
Resource lists, show notes, release notes and plain-text documentation often contain raw web addresses that should be clickable on a web page. Wrapping each one in an anchor tag by hand is slow, especially when the text has dozens of URLs. This tool finds them and builds the links while leaving the surrounding text in place.
How it works
First the whole text is HTML-escaped. Then any sequence starting with http:// or https:// and running until a space or '<' is treated as a URL. Trailing punctuation such as a period, comma, question mark, exclamation point, semicolon, colon or closing parenthesis is moved outside the link. Each URL becomes an anchor whose link text is the URL itself, with rel="noopener". Addresses starting with www. or plain domains are not detected, and line breaks stay as plain line breaks. The output downloads as links.html.
How to use URLs to HTML Links
- Enter the text or data in the format shown in the text box above (Paste text containing URLs).
- Select “Create HTML links” and check the result before copying or downloading it.
Worked example
Paste 'Docs: https://example.com/guide. Status at http://status.example.org!' The output keeps 'Docs: ' then an anchor for https://example.com/guide, followed by the period, then ' Status at ' and an anchor for http://status.example.org, followed by the exclamation point. Both anchors display the full URL as their text.
Tips for a better result
- Add https:// in front of addresses written as www.example.com before converting, otherwise they are left as plain text.
- Check URLs that end in a parenthesis, such as some encyclopedia links; the closing bracket is moved outside the link and the address will break.
- Edit the link text afterward if you prefer descriptive labels like 'Read the guide' instead of the full address.
Frequently asked questions
Does it open links in a new tab?
No. The anchors include rel="noopener" but no target attribute, so links open in the same tab unless you add target="_blank" yourself.
Are email addresses turned into mailto links?
No. Only http and https addresses are linked. Use the Mailto Link Generator for email addresses.
Will it wrap the text in paragraphs?
No. Only the URLs change. The rest of the text, including line breaks, stays as it was, so combine it with Text to HTML if you also need paragraph tags.
What to check
Test generated markup in your own page. Sanitize untrusted content before inserting it into a live website.
Read the Privacy Policy for information about local processing, connected services and advertising.