Free & open source

Add "Copy as Markdown" to any website

Let your readers copy any page as clean Markdown for ChatGPT, Claude, Gemini, and other AI tools. One script tag. No dependencies. No backend.

Install in 10 seconds

Add this line before </body> on any page:

<script src="https://zcag.github.io/copymd/copymd.js" defer></script>

That's it. A floating button appears on your page. Your readers click it, the page is converted to clean Markdown, and it's copied to their clipboard with a token count.

AI-ready output

Clean Markdown with title, source URL, headings, code blocks, tables, and lists. Paste directly into ChatGPT, Claude, or any LLM.

Token counting

Shows approximate token count on copy, so readers know if the content fits their AI tool's context window.

Smart extraction

Automatically finds the main content area. Strips nav, sidebar, footer, ads, and other noise.

Zero dependencies

Pure vanilla JS. No frameworks, no build step, no external requests. ~4KB total.

Options

Customize via data attributes on the script tag:

<script src="https://zcag.github.io/copymd/copymd.js"
  data-position="bottom-left"
  data-theme="light"
  data-label="Copy for AI"
  defer></script>
AttributeValuesDefault
data-positionbottom-right bottom-left top-right top-leftbottom-right
data-themedark lightdark
data-labelAny textCopy as MD
data-brandingtrue falsetrue

Who is this for?

Live demo

See the button in the bottom-right corner? Click it to copy this page as Markdown.

Sample content

This is a demo paragraph showing how the widget extracts content. It handles bold text, italic text, inline code, and more.

The converter intelligently skips navigation, sidebars, and other non-content elements, giving you clean Markdown every time.