Copy Any Page as a Markdown Link (Bookmarklet)
If you write in Markdown, you build the same thing dozens of times a day: square brackets, a page title you copied from somewhere, parentheses, and a URL you copied from somewhere else. The Markdown Link Copier bookmarklet does it in one click. It reads the page title and address, formats them as [Title](URL), and puts the result on your clipboard.
Free Markdown Link Copier bookmarklet: copies the current page as a clean [title](url) Markdown link for GitHub, Notion,…
Where it saves time
- Obsidian, Logseq, and other Markdown notes apps. Clip a reference into a daily note without leaving the page you are reading.
- GitHub and GitLab. Issues, pull request descriptions, READMEs, and code review comments all render Markdown links.
- Docs and static sites. Hugo, Jekyll, Eleventy, Docusaurus, MkDocs, and most wikis use Markdown source files.
- Notion. Pasting
[Title](URL)into a Notion page converts it into a link automatically. - Discord. Messages support masked links in the
[text](url)form. - Research lists. Build a reading list or a source list for an article in seconds.
Slack is a partial exception. Its message composer has its own formatting, and depending on your settings, a pasted Markdown link may stay as literal text. If that happens, paste just the URL, select your text, and use Slack's link shortcut (Ctrl+Shift+U, or Cmd+Shift+U on a Mac).
How it works
The core of a Markdown link copier is tiny:
(() => {
const md = '[' + document.title + '](' + location.href + ')';
navigator.clipboard.writeText(md);
})();
The bookmarklet on this site goes further than that, because real page titles and URLs break naive Markdown more often than you would expect.
Escaping: why naive copiers break links
Markdown link syntax uses square brackets and parentheses, and both appear in real titles and URLs.
Brackets in the title
A title like [Solved] npm install fails produces [[Solved] npm install fails](...), which many renderers misread. The fix is to escape brackets with a backslash: [\[Solved\] npm install fails](...).
Parentheses in the URL
Wikipedia is the classic case: https://en.wikipedia.org/wiki/Mercury_(planet). A closing parenthesis inside the URL can end the link early. Percent-encoding them as %28 and %29, or wrapping the URL in angle brackets, keeps the link intact. Both forms resolve to the same page.
Spaces and odd characters
URLs copied from the address bar are already encoded, so spaces show up as %20. Titles, though, can contain newlines, tabs, or long runs of whitespace from sloppy templates. Collapsing whitespace to single spaces keeps the link on one line.
Noisy titles
Many titles end with " | Site Name" or " - Brand". Some people like keeping the brand for context, and others trim it. If you want a shorter link text, highlight text on the page before clicking: a good copier uses the selection as the link text when there is one. Check the bookmarklet's page for the exact behavior of the version you install.
Clean up the URL before you share it
Shared links often carry tracking parameters like utm_source, fbclid, or gclid. They make links long and leak where you found the page. Trimming them before pasting into public docs is good practice. You can remove them by hand, or adapt the bookmarklet code in the Bookmarklet Maker to strip known tracking keys with URL and URLSearchParams:
const u = new URL(location.href);
['utm_source','utm_medium','utm_campaign','utm_term','utm_content','fbclid','gclid']
.forEach(k => u.searchParams.delete(k));
Copy the whole page, not just the link
Sometimes a link is not enough and you want the content itself in your notes. Page to Markdown converts the main article on the page, with headings, lists, links, and code blocks, into Markdown on your clipboard. It is ideal for archiving a tutorial in Obsidian, quoting documentation in an issue, or feeding a page to an AI assistant.
Free Page to Markdown bookmarklet: converts an article to clean Markdown with headings, lists, links, tables and code.…
Other link formats
Markdown is not the only format people paste. If you work in tools with their own syntax, the same idea applies with a different template:
| Where | Format |
|---|---|
| Markdown (GitHub, Obsidian, Notion) | [Title](https://example.com) |
| Jira and Confluence wiki markup | [Title|https://example.com] |
| Org mode | [[https://example.com][Title]] |
| HTML | <a href="https://example.com">Title</a> |
| reStructuredText | `Title <https://example.com>`_ |
To make a variant, open the bookmarklet's code in the Bookmarklet Maker and change the string it builds.
If nothing gets copied
Browsers only allow clipboard writes from a direct user action. A bookmarklet click counts, but a few things can still get in the way:
- The page is not focused. Click into the page once, then click the bookmarklet.
- The site restricts clipboard access through a permissions policy. When that happens, a well-built copier falls back to showing the text so you can copy it with
Ctrl+CorCmd+C. - You are on a browser-internal page such as the new tab page, where no bookmarklet can run.
See Bookmarklet Not Working? for more fixes. Pairs well with Quick Note for jotting a thought next to the link.
Frequently asked questions
What format does the Markdown Link Copier use?
It copies an inline Markdown link in the form [Page Title](https://example.com/page), which works in GitHub, Obsidian, Notion, Discord, and most Markdown editors.
Does it handle titles with brackets and URLs with parentheses?
Yes. Brackets in the title are escaped and parentheses in the URL are handled so the link does not break when rendered.
Why does Slack show the raw Markdown?
Slack uses its own message formatting and may not convert pasted Markdown links. Paste the URL and use the link shortcut, Ctrl+Shift+U or Cmd+Shift+U, instead.
Does the bookmarklet send the URL anywhere?
No. It reads the title and URL in your browser and writes them to your clipboard. Nothing is sent to us or any other server.