Markdown Link Generator

Type the link URL and the anchor text and the generator emits clean Markdown link syntax, [text](url), with optional title tooltip and a reference-style variant that moves the URL out of the paragraph. Useful when you’re copying a long URL with tracking parameters and want to keep the paragraph readable without breaking the link.

How to generate a Markdown link

  1. 1

    Paste the URL

    Absolute or relative. The tool URL-encodes spaces and reserved characters.

  2. 2

    Type anchor text

    What readers see as the clickable text.

  3. 3

    Add title (optional)

    Appears on hover in most renderers.

  4. 4

    Pick style

    Inline `[text](url)` or reference `[text][ref]` with the definition below.

  5. 5

    Copy and paste

    One-click copy into your doc or README.

The four link variants

Inline, no title:

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

Inline with title (hover tooltip):

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

Reference-style (URL defined below):

Open the [docs][docs] or the [changelog][cl].

[docs]: https://example.com/docs
[cl]:   https://example.com/changelog

Autolink (URL is both text and target):

<https://example.com>

When to pick which

  • Inline for occasional links where the URL is short and the paragraph still reads well.
  • Reference-style when you’re citing the same URL multiple times, or when the URL is a 200-character tracking monster that would otherwise break paragraph flow.
  • Autolink for “here’s our docs page” where you literally want the URL visible as both the text and the target.

Special-character hygiene

  • Spaces in URLs need %20 or the link breaks at the space.
  • Parentheses in the URL need URL-encoding as %28 and %29, otherwise the Markdown parser eats them.
  • Square brackets in anchor text must be escaped as \[ and \] to avoid the parser treating them as nested link syntax.

Accessibility tips

  • Avoid “click here”. Anchor text like click here or read more is useless when screen reader users tab through links. Use descriptive text: [installation guide](...).
  • Don’t put the URL itself as anchor text for long URLs, it’s hostile to assistive tech and ugly in print.
  • Open in new tab is raw HTML (target="_blank"), not Markdown. Most renderers that accept raw HTML will respect it; pure CommonMark won’t.

One-liner shortcut

In GitHub comments, pasting a URL next to selected text converts it to a Markdown link automatically. Handy when you’re already in the editor.

Frequently Asked Questions

No. target="_blank" requires raw HTML. Most Markdown renderers allow the HTML fallback: <a href="..." target="_blank" rel="noopener">text</a>.

As a hover tooltip on desktop browsers. They are not read by most screen readers and are ignored on touch devices, so don’t put essential information there.

When the same URL appears multiple times, when URLs are long (tracking parameters, UUIDs), or when you want all links collected at the bottom of the document for easier maintenance.

Yes, in most renderers. [other doc](./other.md) links to another file in the same folder. Behaviour varies between GitHub, Obsidian and static site generators, test in your target environment.

Related Tools

Tool available in other languages