explaingit

lakshithalk/page-to-markdown

Analysis updated 2026-05-18

2JavaScriptAudience · writerComplexity · 1/5LicenseSetup · easy

TLDR

A privacy-first Chrome extension that turns any web page or text selection into clean Markdown with no network calls.

Mindmap

mindmap
  root((repo))
    What it does
      Converts pages to Markdown
      Converts selected text too
      Copies or downloads result
    Tech stack
      JavaScript
      Chrome Extension
    Use cases
      Save articles as Markdown
      Clip notes for Obsidian
      Archive web content locally
    Audience
      Writers
      Developers
    Privacy
      No network requests
      No host permissions
      Local storage only

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Save a web article as clean Markdown for reading or archiving later.

USE CASE 2

Clip a highlighted section of a page directly into a note taking app like Obsidian.

USE CASE 3

Convert documentation pages into Markdown for use in another project's docs.

USE CASE 4

Extract structured content like tables and code blocks from a page without manual formatting.

What is it built with?

JavaScriptChrome Extension

How does it compare?

lakshithalk/page-to-markdown3imed-jaberi/cryptography-si-isamm3imed-jaberi/koa-isomorphic-router
Stars222
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-09-252021-02-06
MaintenanceDormantDormant
Setup difficultyeasyeasyeasy
Complexity1/51/52/5
Audiencewriterresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

No build step or dependencies, load unpacked in Chrome or install from the Web Store once published.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Page to Markdown is a Chrome extension that converts a web page, or just the part of it you have highlighted, into clean Markdown text. You can copy the result to your clipboard or save it as a Markdown file. It has no server, no analytics, and no account to sign in to, and it does not ask for permission to read every website you visit, only the tab you are on when you click it. You can install it from the Chrome Web Store once it is published there, or load it directly from the source code using Chrome's developer mode, with no build steps or extra tools required. It offers three ways to convert a page: pulling out just the main article content while stripping navigation and footers, converting the entire visible page when there is no clear article structure, or converting only text you have selected. It also adds a right click option and a keyboard shortcut, and can optionally add a small header with the page title, source link, and capture date, useful for note taking apps like Obsidian. Headings, lists, tables, code blocks with their programming language detected, quotes, images, and links are all preserved when converting. Everything happens inside your browser, the extension makes no network requests at all, and the only data it stores locally is two small interface preferences, which are removed if you uninstall it. Under the hood it is a small, dependency free JavaScript converter injected into the page only at the moment you use it. The project notes some limits: it cannot work on Chrome's internal pages or the Web Store, cannot read content inside cross origin iframes, and pages built entirely with shadow DOM may convert incompletely. It is released under the MIT license.

Copy-paste prompts

Prompt 1
Load this extension unpacked in Chrome developer mode and test it on a sample article.
Prompt 2
Explain how extractor.js converts a page's DOM into Markdown without any dependencies.
Prompt 3
Show me how to add YAML front matter with the source URL when converting a page.
Prompt 4
Walk me through why this extension only needs activeTab instead of full host permissions.

Frequently asked questions

What is page-to-markdown?

A privacy-first Chrome extension that turns any web page or text selection into clean Markdown with no network calls.

What language is page-to-markdown written in?

Mainly JavaScript. The stack also includes JavaScript, Chrome Extension.

What license does page-to-markdown use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is page-to-markdown to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is page-to-markdown for?

Mainly writer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.