cpdown: A Practical Guide to Converting Any Webpage to Clean Markdown With One Click
“
This article centers on the cpdown browser extension, offering a clear, step-by-step walkthrough for installation, configuration, and usage, along with an in-depth look at its core principles and application scenarios to help readers with at least an associate degree quickly master its features. Presented in plain language, this guide is accessible to both technical and non-technical audiences.
Table of Contents
-
-
-
-
Installation and Configuration
-
4.1 One-Click Installation on Chrome -
4.2 Firefox Support (Coming Soon) -
4.3 Configuration Panel and Options
-
-
-
-
6.1 Converting Web Content to Markdown -
6.2 Exporting YouTube Subtitles
-
-
-
-
-
-
Background and Motivation
In daily work, study, or creative endeavors, users often need to save and edit webpage content in Markdown format. Common use cases include:
-
Blog Post Archiving: Collecting articles from various blogs into personal notes. -
Technical Documentation: Converting API references and tutorials into local Markdown files for offline access. -
Research and Archiving: Extracting news articles, papers, tutorials, and Q&A threads for future reference.
Traditionally, this process involves copying text manually, cleaning up HTML remnants, and reformatting content—tasks that are time-consuming and prone to errors. cpdown emerged to streamline this workflow by offering one-click conversion of any webpage into clean, well-structured Markdown, removing the overhead of manual cleanup and enabling content creators, editors, and developers to focus on what matters most.
What Is cpdown?
cpdown is a lightweight browser extension initially available for Chrome (with Firefox support in active development). It empowers users to:
-
One-Click Content Extraction: Automatically identify the main content of a page, stripping out scripts, styles, ads, and embedded frames. -
Clean Markdown Generation: Convert extracted HTML content into standardized Markdown syntax, handling headings, lists, code blocks, tables, and images. -
YouTube Subtitle Export: Extract subtitles from YouTube videos as Markdown, complete with timestamps and paragraph structure. -
Token Count Display: For large language model (LLM) workflows, display the token count of the converted text, helping users manage request payloads and prompt length.
In short, cpdown makes it easy to “clean, format, and understand” webpage content, while providing token management tools for those working with AI-driven platforms.
Key Features Explained
Below is a deep dive into cpdown’s primary capabilities and how they benefit real-world applications.
1. Automatic Main Content Extraction
-
How It Works: Utilizes proven content extraction engines such as Defuddle and Mozilla Readability to identify the core article or main text area. -
Benefits: Filters out navigation bars, ads, sidebars, and footers, leaving only meaningful text, images, and captions for conversion.
2. Pristine Markdown Output
-
Comprehensive Syntax Mapping: Supports headings (H1–H5), unordered and ordered lists, blockquotes, code fences, tables, and more. -
Optional Code Fence Mode: Wraps the entire output in triple backticks, ideal for direct inclusion in code editors or version control.
3. YouTube Subtitle Extraction
-
Timestamp Preservation: Includes time indicators for each subtitle segment, aiding transcription, translation, and scriptwriting workflows. -
Structured Paragraphs: Keeps subtitles organized by logical breaks, ensuring readability and ease of editing.
4. Token Counting for LLM Use Cases
-
What Are Tokens? The basic units LLMs use to process text. Each word or punctuation mark can consume one or multiple tokens. -
Why It Matters: Knowing token count in advance helps avoid exceeding model limits, reduce API costs, and optimize prompt design for improved accuracy.
Installation and Configuration
Follow the steps below to set up cpdown on your preferred browser and customize its behavior.
4.1 One-Click Installation on Chrome
-
Open the Chrome browser and navigate to the Chrome Web Store listing for cpdown. -
Click Add to Chrome, then confirm the permission dialog. -
An icon for cpdown will appear in the top-right corner of your toolbar.
“
Tip: Right-click the cpdown icon and choose Pin to toolbar to keep it easily accessible.
4.2 Firefox Support (Coming Soon)
-
Currently, cpdown is available only on Chrome. A Firefox version is undergoing final testing and will be released shortly. -
Keep an eye on the GitHub repository or your extension marketplace for updates.
4.3 Configuration Panel and Options
Access cpdown’s settings by opening your extensions page (chrome://extensions/?options/knnaflplggjdedobhbidojmmnocfbopf
) or by right-clicking the icon and selecting Options. Key configuration flags include:
Option Name | Description |
---|---|
Use Defuddle | Enable the Defuddle engine for extracting long-form articles. |
Use Readability | Use Mozilla Readability for complex page layouts. |
Wrap in Triple Backticks | Surround output with code fences for easy code editor import. |
Show Success Toast | Display a notification after successful copy. |
Enable Raycast Confetti | Special animation for Raycast users. |
“
Recommendation: For lengthy, text-heavy pages, enable Defuddle. For news sites or multi-column layouts, switch to Readability.
Manual Installation and Development Setup
Developers or power users wanting to contribute to or modify cpdown can set up a local development environment:
# Clone the cpdown repository
git clone https://github.com/ysm-dev/cpdown.git
cd cpdown
# Install dependencies with Bun
bun install
# Build the extension package
bun run build
Then:
-
Open chrome://extensions
in Chrome or Edge. -
Enable Developer mode. -
Click Load unpacked, and select the .output/chrome-mv3
directory.
Your local version of cpdown is now active, allowing instant testing of code changes.
Usage Scenarios and Examples
The following examples demonstrate common ways to leverage cpdown for efficient content workflows.
6.1 Converting Web Content to Markdown
Use Case: Building personal knowledge bases, writing blog drafts, archiving research material.
Steps:
-
Navigate to any article or blog post. -
Click the cpdown icon or press the default hotkey (Ctrl+Shift+M). -
The extension extracts and converts the main content to Markdown. -
Paste into your favorite Markdown editor or note-taking app to see a clean, formatted document.
6.2 Exporting YouTube Subtitles
Use Case: Transcribing lectures, preparing translated subtitles, analyzing video content.
Steps:
-
Open a YouTube video with captions enabled. -
Click the cpdown icon and select Copy Subtitle as Markdown. -
Paste the output into any editor—timestamps and segment breaks are preserved.
Under-the-Hood Architecture and Tech Stack
cpdown combines a set of mature open-source libraries and modern web technologies:
Technology / Library | Purpose |
---|---|
Defuddle | Core engine for article content extraction |
Mozilla Readability | Alternative engine for complex layouts |
Turndown | Converts HTML to Markdown |
tiktoken | Counts tokens for LLM scenarios |
Cursor | Vercel-supported developer experience |
Web Extension Toolkit | Base framework for cross-browser extensions |
React | Builds the extension’s options UI |
Shadcn UI | Radix/Tailwind-based component library |
Sonner | Lightweight toast notifications |
Tailwind CSS | Utility-first styling |
This architecture ensures reliable performance, ease of maintenance, and extensibility.
Frequently Asked Questions (FAQ)
HowTo: Quick Start Workflow
{
"@context": "https://schema.org",
"@type": "HowTo",
"name": "Quickly Install and Use cpdown",
"step": [
{
"@type": "HowToStep",
"name": "Install the Extension",
"text": "Visit the Chrome Web Store and click **Add to Chrome**."
},
{
"@type": "HowToStep",
"name": "Open Your Target Webpage",
"text": "Navigate to any webpage you wish to convert to Markdown."
},
{
"@type": "HowToStep",
"name": "Extract Content",
"text": "Click the cpdown icon or use your shortcut to copy the content as Markdown."
},
{
"@type": "HowToStep",
"name": "Paste and Edit",
"text": "Paste into an editor, make adjustments, and share or publish your clean Markdown file."
}
]
}
Community and Contribution
cpdown is an open-source project on GitHub. Contributions, bug reports, and pull requests are highly welcome:
-
Repository URL: https://github.com/ysm-dev/cpdown -
Issue Tracker: Post your questions or feature requests on the Issues page.
The project has gained strong community traction and continues to grow in stars and contributors.
License and Changelog
-
License: MIT—free for personal and commercial use, modification, and distribution. -
Changelog: View the release history and version notes on the GitHub releases page.
“
Note: For support or to report issues, use the GitHub Issue tracker or the “Feedback” option in the extension menu.
This guide is based entirely on the official cpdown README, tailored for clarity, practical depth, and ease of adoption by a diverse audience.