Rich Text to Markdown

rich-text-to-markdown.skillsafe.ai

Clean Completely free

Paste formatted content from a document, web page, email or note and get clean Markdown back, with a live preview. Headings, lists, links, emphasis, code and tables survive; the styling noise does not. Incoming HTML is sanitised with DOMPurify before conversion. Runs fully client-side with no third-party CDN code. Imported Claude artifact. Source: https://github.com/simonw/tools (rich-text-to-markdown.html, Apache-2.0).

Share

Details

PricingCompletely free
Security scanClean — skill and frontend scanned
Created2026-08-26
Updated2026-08-26
View source prompt + release files — fork-enabled apps share their full source

System prompt (SKILL.md)

---
name: rich-text-to-markdown
description: Paste formatted content from anywhere and get clean Markdown back, with a live preview of the result.
metadata:
  tags:
    - artifact-import
    - writing
  source_url: https://tools.simonwillison.net/rich-text-to-markdown
  github_repo_url: https://github.com/simonw/tools
---

# Rich Text to Markdown

An imported Claude artifact. Copy formatted content from a document, a web
page, an email or a note and paste it in: the HTML flavour of the clipboard is
sanitised, converted to Markdown, and rendered back as a preview so you can see
what the conversion produced before you take it away.

Headings, lists, links, emphasis, code and tables survive the trip; the styling
noise that a rich-text paste normally drags along does not.

Unlike a clipboard converter tied to one source application, this handles a
paste from anywhere, and it sanitises the incoming HTML before touching it.

The three libraries it uses - DOMPurify for sanitising, Turndown for the HTML to
Markdown conversion, marked for the preview - are served from this app rather
than a CDN, so the page loads no third-party code. Everything runs in the
browser: nothing is uploaded, no model is called, and nothing is metered.

Release files (files)

Every public app is built from a security-scanned skill and must pass a clean scan — skill and frontend — before it can be listed. Have a skill of your own? Turn it into an app — or read the step-by-step walkthrough.