Skip to content
All referenceLinks & Media

Markdown Link

Learn how to create links in markdown with inline syntax, reference-style links, and auto-links. Syntax, tips, and platform support.

What is markdown link?

Links in markdown use square brackets for the display text and parentheses for the URL: [text](url). You can also add hover titles, use reference-style links for cleaner source, and auto-link bare URLs on most platforms.

Syntax

Inline link

The standard way to create a link — text in brackets, URL in parentheses.

Link with title

Add a title in quotes after the URL. It appears as a tooltip on hover.

Reference-style link

Define URLs at the bottom. Keeps source clean when the same URL is used multiple times.

Auto-link

Most platforms auto-link bare URLs without any special syntax.

Platform support

PlatformSupportedNotes
GitHubYesAuto-links URLs and @mentions
GitLabYes
DiscordYesInline links work, reference links don't
SlackPartialAuto-links URLs, no [text](url) syntax
RedditYes
Stack OverflowYes
NotionYes
ObsidianYesAlso supports [[wiki links]]

Common mistakes

Wrong
[text] (url)
Right
[text](url)

No space between the brackets and parentheses. A space breaks the link syntax.

Wrong
[text](url with spaces)
Right
[text](url%20with%20spaces)

URLs with spaces must be percent-encoded. Replace spaces with %20.

Wrong
(text)[url]
Right
[text](url)

The order matters — square brackets first (text), then parentheses (URL). Reversing them won't create a link.

Tips for link

1Use descriptive link text

Write meaningful text like [read the guide](url) instead of [click here](url). This helps accessibility and SEO.

2Reference links for repeated URLs

When linking to the same URL multiple times, reference-style links keep your source cleaner and easier to update.

[link1][docs] and [link2][docs]

[docs]: https://example.com
3Link to headings

Link to sections within the same document: [see above](#heading-text). The anchor is the heading text, lowercased, spaces replaced with hyphens.

Frequently asked questions

Everything you need to know.

1

How do I create a link in markdown?

Use [display text](URL) syntax. Example: [Google](https://google.com) creates a clickable link showing "Google".

Related elements

Try it in the editor

Paste your markdown and see link rendered instantly with professional themes.