FormatterHQ

Hyperlink Generator

Enter a URL and link text once and get the hyperlink in every common format: HTML anchor, Markdown, BBCode and plain text.

Output HTML
Ready.

How to use the Hyperlink Generator

  1. Enter the destination URL and the text for the link.
  2. Optionally add a title, choose to open in a new tab and mark the link as nofollow.
  3. Pick one output format or all formats at once.
  4. Copy the version you need into your page, README, forum post or email.

One link, every format

The same link often ends up in several places: a web page, a GitHub README, a forum post and a plain-text email. Each uses a different syntax. This hyperlink generator writes all of them from a single URL and link text, so you do not have to remember which brackets go where.

Example output

HTML:
<a href="https://example.com/docs" target="_blank" rel="noopener noreferrer">Read the documentation</a>

Markdown:
[Read the documentation](https://example.com/docs)

BBCode:
[url=https://example.com/docs]Read the documentation[/url]

Plain text:
Read the documentation (https://example.com/docs)

Where each format is used

FormatUsed in
HTMLWebsites, CMS source views, HTML emails, email signatures
MarkdownGitHub and GitLab READMEs, issues, documentation sites, note-taking apps, chat tools that support Markdown
BBCodephpBB, MyBB, vBulletin and other forums
Plain textText emails, SMS, commit messages, anywhere formatting is not supported

Hyperlink generator format details

  • HTML – attribute values are escaped. With "new tab" enabled, target="_blank" and rel="noopener noreferrer" are added; nofollow is appended to rel when selected.
  • Markdown – when you select Markdown alone, square brackets in the text are escaped, a closing parenthesis in the URL is encoded as %29 so it cannot end the link early, and a title becomes [text](url "title").
  • BBCode – uses the widely supported [url=…]text[/url] form.
  • Plain text – puts the URL in parentheses after the text, the conventional form for text emails.

Markdown and BBCode have no standard way to open links in a new tab or add rel attributes; the platform decides. Those options therefore affect only the HTML version.

What the rel values in the HTML link do

  • noopener stops the page opened in a new tab from accessing your page through window.opener. Current browsers already behave this way for target="_blank", but the attribute keeps older browsers safe too.
  • noreferrer also hides the Referer header, so the destination site's analytics count the visit as direct traffic rather than a referral from you. Leave the new-tab option off if you want referrals to show up.
  • nofollow asks search engines not to pass ranking credit through the link. Google has treated it as a hint rather than a strict rule since 2019, and it also recognises sponsored for paid links and ugc for user-generated content.

For ordinary links to your own pages, none of these are needed.

Common mistakes

The most frequent Markdown link problem is a space between the brackets and the parentheses: [text] (url) is not a link. In BBCode, forgetting the = in [url=…] produces a link whose text is the URL. And in HTML, an unescaped & in a query string usually works but is technically invalid; the generator escapes it as &amp; for you.

Tips

  • Use descriptive link text instead of a vague "here"; it helps screen-reader users and gives the destination context.
  • Encode spaces and special characters in URLs with the URL encoder before generating the link.
  • Need more HTML options such as inline color or the sponsored attribute? Use the HTML link generator.
  • Preview Markdown containing your link in the Markdown viewer.

Links are generated locally in your browser.

Frequently asked questions

How do I write a link in Markdown?
Put the link text in square brackets followed by the URL in parentheses, for example [Read the docs](https://example.com/docs). An optional title goes in quotes after the URL.
Can Markdown links open in a new tab?
Standard Markdown has no syntax for that. Some platforms add target="_blank" to external links automatically; otherwise use an HTML anchor where HTML is allowed.
What is the BBCode link format?
Most forums use [url=https://example.com]link text[/url]. If the link text is the URL itself, [url]https://example.com[/url] also works.
Does the plain-text version work in emails?
Yes. Most email clients turn URLs in plain text into clickable links automatically, so text followed by the URL in parentheses is the usual convention.

Last updated October 3, 2026

Related tools

Favicon Generator Make favicon.ico, Apple touch and Android icons plus site.webmanifest and HTML tags from an image or from text/emoji. ZIP download. Hreflang Tag Generator Generate hreflang annotations for multilingual sites as <link> tags, sitemap entries or HTTP headers, with code validation. .htaccess Redirect Generator Generate Apache .htaccess 301/302 redirects from old → new URL pairs, plus force-HTTPS, www and trailing-slash rules. HTML Link Generator Create an HTML anchor tag with link text, title, target _blank, nofollow or sponsored rel and simple inline styling. HTML Table Generator Generate HTML table code with any number of rows and columns, header row, caption, border and padding - with live preview. Lorem Ipsum Generator Generate lorem ipsum placeholder text by paragraphs, sentences or words, optionally wrapped in HTML <p> tags. Jade to HTML Converter Render legacy .jade templates to HTML and find the deprecated Jade syntax to fix before moving to Pug or plain HTML. Mailto Link Generator Create mailto: links with pre-filled recipients, CC, BCC, subject and body — correctly URL-encoded, with the HTML <a> tag. Marquee Generator Generate HTML marquee code for scrolling text with direction, speed, behaviour, colours and pause-on-hover, with live preview. HTML Minifier Minify HTML online including inline CSS and JavaScript. Pug to HTML Converter Compile Pug templates to HTML online: tags, #id/.class shortcuts, attributes, block text, interpolation and comments. Responsive Website Tester Preview any website on phone, tablet, laptop and desktop screen sizes side by side to check your responsive design.