Markdown Reference Link Converter
Long Markdown documents get hard to read when every link carries its full URL inline. Reference-style links move the URLs to a tidy list at the bottom and leave clean, readable prose in the body. This tool converts in both directions: collapse inline links into reference style, or expand reference links back to inline.
How to use the Markdown Reference Link Converter
Pick a direction. Inline → Reference scans the body for [text](url) links, replaces each with a label such as [text][1], and gathers the matching [1]: https://url definitions into a block at the end. Reference → Inline does the reverse: it reads the definition block and folds each URL back into the place it is used, then removes the now-unused definitions.
By default references are numbered in order of first appearance, which is compact and avoids clashes when the same link text is used twice with different URLs. Untick the box to use the link text itself as the label — for example [official docs][official docs] — which some authors find easier to maintain by hand. Titles in quotes are preserved on the definition line either way.
Everything runs in your browser as you type, and the result is ready to paste back into your document with Copy result.
Inline vs. reference-style links
Markdown gives you two ways to write the same link. The inline form keeps the destination right next to the text: [text](https://url). It is quick to write and obvious to read in isolation, but in a paragraph full of long URLs it clutters the source and makes the prose hard to scan. The reference form splits the link in two: a label in the body, [text][id], and a definition elsewhere, [id]: https://url. The rendered output is identical; only the source differs.
Reference style shines in long-form writing. Definitions collect at the bottom like a bibliography, so the body reads almost like plain prose. Reusing a link is trivial — point several labels at the same id. And when a URL changes you edit it in exactly one place. This is why documentation, README files, and academic-style Markdown often favor references, while quick comments and chat messages stick with inline.
The two styles are perfectly interconvertible because they carry the same information: link text, destination, and an optional title. Converting between them is therefore lossless. The only judgement call is how to name the references — numbers are compact and collision-free, while text labels are self-describing but can collide if the same words point at different URLs. This tool defaults to numbering for safety and offers text labels when you prefer them.
Common use cases
- Cleaning up long documents. Convert a link-heavy article or README to reference style so the prose reads cleanly in the source.
- Preparing for hand-editing. Collect every URL in one block at the bottom where you can review, update, or de-duplicate them.
- Flattening for portability. Expand references back to inline before pasting into a tool or comment box that does not resolve reference definitions.
- Reusing links. Spot and consolidate the same destination used in several places.