Skip to content
trimd logo

To Markdown and back

Trimd is command-line tool to convert between HTML, Markdown, and plain text, powered by unified.js libraries. It runs in Node.js and can be installed globally with npm:

npm install -g trimd

The full documentation is available on the GitHub repository page.

Online HTML to Markdown converter

I’ve used the same libraries as for the command-line tool to make a companion web tool focused on converting HTML to Markdown:

Trimd HTML to Markdown →

All operations are performed locally, without any data leaving the browser.

The web tool has the advantage of being able to access the text/html entry of the clipboard, which makes it ideal for converting content from many native apps directly to Markdown:


Colophon: The Trimd wordmark is typeset in IBM Plex Mono, a typeface by Bold Monday.

Related projects

Percollate logo Percollate

Turn web pages into readable PDF, EPUB, HTML, or Markdown files from the command line.

Yamatter logo Yamatter

Inspect and transform YAML front-matter data from the command line.

Clipboard Inspector logo Clipboard Inspector

A tool to help you explore the kinds of data available when you paste something on a web page, or drop something onto it.