Skip to content
100% local

URLs to HTML links

Turn every bare URL in a block of text into a clickable HTML anchor tag.

Input
Output

URLs to HTML links

Paste a paragraph, a list, or a page of notes and this tool finds every web address in it and wraps it in a ready-to-paste <a href="..."> tag, so you can drop the result straight into a CMS, an email template, or raw HTML without hand-writing anchor tags one by one.

Each match is processed line by line, so line breaks in your original text are preserved in the output. By default, only URLs that start with http:// or https:// are converted; turn on "Also wrap bare domains" to catch addresses typed without a scheme, like example.com or docs.example.com/guide, too — useful for text pasted from chat apps or spreadsheets where people rarely type the full https://. Trailing punctuation like a comma or period at the end of a sentence is left outside the link, and a closing parenthesis that belongs to the surrounding sentence is not swallowed either, so "(see example.com)" links only the domain.

Choose whether links open in the same tab or a new one — "Open in new tab" adds target="_blank" together with rel="noopener noreferrer", which is the safe combination browsers and security scanners expect. For the link text, use the URL itself (the default, and the most transparent choice for readers) or supply one fixed custom label such as "Read more" that is reused for every link on the page. Any HTML-sensitive characters in the surrounding text — <, >, and & — are escaped automatically, so the output is valid HTML even when your source text already contains stray angle brackets.

Everything runs locally in your browser: nothing you paste is uploaded or logged, which makes this safe for drafts, internal documentation, or content that isn't public yet. The tally under the output shows how many links were created and how many lines were processed, and you can copy the HTML or download it as a .txt file once you're happy with the result.

FAQ

Does it work with URLs that don't start with http:// or https://?
By default, no — only http(s) URLs are linked. Turn on "Also wrap bare domains" to also convert addresses like example.com that are typed without a scheme; the generated link is prefixed with https:// automatically.
What does "Open in new tab" actually add to the HTML?
It adds target="_blank" rel="noopener noreferrer" to every generated anchor tag. The rel attribute keeps the new tab from getting a reference back to the original page, which is the standard, safe way to open links externally.
Can I use my own link text instead of showing the URL?
Yes. Switch "Link text" to "Custom label" and type the text you want — every link on the page will use that same label. Leave it blank to fall back to showing the URL.
Will it break a URL that ends a sentence with a period or comma?
No. Trailing punctuation such as . , ; : ! ? and a closing quote or parenthesis is kept outside the link unless it is part of a balanced pair inside the URL itself, like a Wikipedia link ending in "_(disambiguation)".
Is my text uploaded anywhere?
No. URL conversion runs entirely in your browser — the text you paste never leaves your device.