Chrome Extension · v1.0

Cast any page.
Feed any model.

Chrome extension that converts webpages to clean Markdown in one click. MD, JSON, or Claude XML. Token-aware. Built for LLM workflows.

github.com/blacklogos/castmd cast md MD JSON XML Copy as Markdown Save as .md Copy Outline Copy all tabs 12 tabs Copied to clipboard ~2.4k tokens gpt-4o claude gemini gpt-4 ⌃⇧M · right-click cc4.marketing PREVIEW & EDIT # Getting Started with castmd **castmd** converts any webpage to clean Markdown. One click, clipboard ready.

Install in 3 steps

01

Download

Get the ZIP from GitHub releases and unzip it

02

Load

Open chrome://extensions/ → Developer mode → Load unpacked

03

Cast

Visit any page → click castmd → choose output → paste into your model

chrome://extensions/ → Enable Developer mode → Load unpacked

Everything your LLM workflow needs.

From a single article to your entire research session — castmd handles it.

01

Inline Formatting

Bold, italic, links, and inline code survive the conversion. Markdown that reads like the original page.

02

Token Counter

Exact token estimates after every conversion. Know before you paste whether the content fits your context window.

03

Model Fit Display

Instant fit check against gpt-4, gpt-4o, Claude, and Gemini. Green chips for fits, greyed-out for over limit.

04

All-Tabs Export

Merge every open tab into one Markdown session document. Capture your entire research context in a single paste.

05

Smart Detection

ARIA-role content detection skips nav, sidebars, and footers automatically. Full GitHub README support included.

06

Preview & Edit

Review and tweak converted output before copying or saving. Edit inline, then re-copy or re-save in one click.

Three modes, one click.

Pick the output format that your model or workflow expects.

MD Universal · Obsidian · Notion
# Getting Started with castmd

**castmd** converts any webpage to clean
Markdown for LLM workflows.

## Features

- Token counting
- Model fit display
- All-tabs export
JSON APIs · RAG pipelines · Code
{
  "title": "Getting Started",
  "url": "github.com/...",
  "markdown": "# Getting...",
  "tokens": 2418
}
XML Claude · Anthropic API
<document>
<source>github.com/...</source>
<document_content>
# Getting Started

**castmd** converts any webpage...
</document_content>
</document>

How it works.

From any webpage to your model in four clicks.

1

Install

Load the extension in Chrome developer mode — no Chrome Web Store required.

2

Browse

Navigate to any page — docs, articles, GitHub READMEs, research papers.

3

Cast

Click the popup, choose MD, JSON, or XML, then copy or save.

4

Paste

Drop it into your model. Token count tells you exactly what fits.

Platform
Chrome MV3
Language
Vanilla JS
Dependencies
Zero
Backend
None
License
Open Source

Questions.

Does it work on all websites?

castmd uses semantic HTML detection — main, article, [role="main"], and content-density analysis as a fallback. It works on most content sites, documentation, and GitHub READMEs. Dynamic SPAs may need a moment to fully load before casting.

What is the XML format for?

The XML mode wraps content in Anthropic's <document> format — the same structure used in Claude's multi-document prompting API. Paste it directly into a Claude conversation or system prompt for structured context injection.

Does castmd send my data anywhere?

No. castmd runs entirely in your browser. No server, no analytics, no tracking. Conversion happens in the content script injected into the active tab. Nothing leaves your machine.

How does all-tabs export work?

castmd injects a content script into each open tab, converts the page content to Markdown, then concatenates all pages into a single document separated by horizontal rules and page titles. The token count reflects the full combined document.

How are tokens counted?

castmd estimates tokens as ceil(characters / 4) — a good approximation for English-language LLM tokenizers. It then compares against known context limits: gpt-4 (8k), gpt-4o (128k), Claude (200k), Gemini (1M).

What keyboard shortcut does castmd use?

Ctrl+Shift+M on Windows/Linux, Cmd+Shift+M on Mac. You can also right-click any page and choose "Copy page as Markdown" from the context menu.