Markdown links look almost too simple to explain: a few brackets, a pair of parentheses, done. Yet most broken links in READMEs, wikis and forum posts fail on exactly those few characters: a bracket in the wrong place, a space inside the address, a label and destination swapped. The syntax is small enough to learn properly in minutes, and after that you can read, write and debug any link on sight.

This guide dissects the syntax using the output of the URL to Markdown Link Converter on Ovatly as the specimen: one real line taken apart piece by piece, the two rules that keep a link valid, and the one thing this syntax honestly cannot do.

Contents

  • Quick answer
  • The two parts: brackets and parentheses
  • Worked examples: one line, taken apart
  • When the label changes and the destination does not
  • Escaping: brackets inside a label
  • Percent-encoding: spaces and brackets inside a destination
  • CommonMark: why the inline form renders everywhere
  • What the syntax cannot express
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

A Markdown link is written as [text](url). The square brackets hold the label, the text the reader sees and clicks. The parentheses hold the destination, the address the click reaches. The label can be any wording you choose, including the address itself, while the destination stays the exact URL. Brackets inside a label must be escaped, spaces and brackets inside a destination are percent-encoded, and the syntax has no way to express rel or target attributes. The URL to Markdown Link Converter builds these links from a list of bare URLs so you do not have to type the punctuation by hand.

The two parts: brackets and parentheses

Every inline Markdown link has exactly two parts, in a fixed order. First come the square brackets, and inside them sits the label. The label is presentation: the words rendered as the clickable text in the finished document. It can be a single word, a full sentence fragment, or even the address itself.

Immediately after the closing bracket, with no space between, come the parentheses. Inside them sits the destination: the URL the reader is sent to when the label is clicked. The destination is function, not presentation. Readers rarely see it directly, but it must be exact, because a single wrong character sends the click to the wrong place or nowhere.

The order and the adjacency both matter. Brackets first, parentheses second, touching each other. A space between the closing bracket and the opening parenthesis breaks the construction in many renderers, and swapping the parts produces text that looks link-shaped but goes nowhere.

Worked examples: one line, taken apart

The converter's own worked example is the clearest specimen. Feed it one line of input:

https://ovatly.com/tools

With the link text set to the full URL, the output is:

[https://ovatly.com/tools](https://ovatly.com/tools)

Read it against the anatomy above. The brackets hold https://ovatly.com/tools, so the rendered document shows the address as the clickable text. The parentheses hold https://ovatly.com/tools again, so the click goes to that same address. Label and destination happen to be identical here, but they are still two separate parts doing two separate jobs.

Now watch what changes when the label mode changes. With the link text set to domain only, the same input becomes:

[ovatly.com](https://ovatly.com/tools)

When the label changes and the destination does not

In the second form, the brackets hold only ovatly.com, so the rendered link is shorter and tidier to read. The parentheses still hold the complete address, https://ovatly.com/tools, so the click lands on exactly the same page as before. The destination never moved; only the presentation did.

This separation is the practical heart of the syntax. Because label and destination are independent, you can rename a link for readability without breaking it, shorten a long address into a clean phrase, or give every link in a list its own label while each keeps its exact destination. It is also why the converter offers the full URL, the domain alone, and custom wording with the {url}, {domain} and {n} placeholders: three ways of filling the brackets, while the parentheses are filled the same way every time.

Escaping: brackets inside a label

Square brackets are structural characters in this syntax, which creates a problem when a label legitimately needs one. An unescaped closing bracket inside the label is read as the end of the label, so the link terminates early and the remaining text spills out as ordinary prose, with the parentheses left dangling after it.

The fix is escaping: marking the bracket so the parser treats it as a literal character rather than structure. When you use the converter, square brackets in custom link text are escaped automatically, so the Markdown stays valid without you hunting for stray brackets in a long list of labels. Writing links by hand, the same rule applies: any bracket that is meant to be seen must be escaped, and any bracket that is not escaped will be treated as syntax.

Percent-encoding: spaces and brackets inside a destination

The destination has its own version of the same problem. A raw space inside the parentheses can end the destination early in strict parsers, leaving the rest of the address outside the link. Brackets inside a URL cause similar confusion about where the address ends.

The output therefore percent-encodes spaces and brackets inside a URL, replacing each problem character with its encoded form so the address survives as one unbroken unit. Some strict parsers require this, and applying it always means the link behaves the same in lenient and strict renderers alike. The converter applies the encoding for you, and an encoded address still resolves to the same place, because percent-encoding is a writing convention, not a different address.

CommonMark: why the inline form renders everywhere

Markdown grew into many dialects, but the inline link form [text](url) belongs to CommonMark, the shared core specification. That is why it works in GitHub, GitLab, and virtually every Markdown renderer: the form used in READMEs, wikis, forums, note apps and static site content is this one. Exotic extensions may add features in one renderer, but they risk rendering as plain text everywhere else, while the CommonMark form travels safely between all of them.

What the syntax cannot express

The honest limit deserves its own short section. Markdown has no equivalent of the rel or target attributes, so links written in this syntax carry no nofollow or new-tab behavior. There is no punctuation you can add to the brackets or parentheses to change that; the capability simply is not in the format. That is a limit of the format, not a missing option in any converter. When the publishing context needs those attributes, the link belongs in HTML markup, where rel and target exist, and the HTML form of the converter is the right tool.

Common mistakes

  • Leaving a space between the brackets and the parentheses. The two parts must touch. A gap breaks the construction in many renderers and the link renders as literal text.
  • Putting the address in the brackets and the label in the parentheses. The parts have fixed jobs. Swapped, the visible text becomes the destination string and the click target becomes your label words, which go nowhere.
  • Typing a label with a bare closing bracket. It ends the label early and spills the rest into prose. Escape brackets that are meant to be read, or let the converter escape them for you.
  • Pasting an address with a raw space into the parentheses. The destination can end at the space in strict parsers. Percent-encoding keeps the address whole.
  • Trying to force new-tab or nofollow behavior into Markdown. The syntax cannot express either attribute. Use the HTML form where those behaviors matter.

FAQs

What do the square brackets and parentheses each hold? The square brackets hold the label, the words the reader sees and clicks. The parentheses hold the destination, the address the click leads to. Together they form the inline link text.

What happens if my label contains a square bracket? An unescaped closing bracket ends the label early and breaks the link. Square brackets in custom link text are escaped automatically by the converter, so the Markdown stays valid.

Why are spaces in a URL replaced in the output? Spaces and brackets inside a URL are percent-encoded in the output. A raw space can end the destination early in strict parsers, and some strict parsers require the encoded form.

Can a Markdown link open in a new tab or carry nofollow? No. Markdown has no equivalent of rel or target attributes, so links in this syntax carry no nofollow or new-tab behavior. Attributes belong to the HTML form of a link.

Where does this syntax actually render? The text inline form is part of CommonMark and works in GitHub, GitLab, and virtually every Markdown renderer, which is why it is the safe default form.

Conclusion

The whole syntax fits in one line: brackets for the label, parentheses for the destination, no space between them, brackets inside a label escaped, and problem characters inside a destination percent-encoded. Everything else about Markdown links is those rules applied patiently. When the list is long, the URL to Markdown Link Converter applies them for you, one line at a time. For the conversion workflow itself, read How to Convert URLs Into Markdown Links, and for more guides in this series see the URL and Link Tools guides.