Built a super duper fast html to markdown

Apr 25, 2026

so i made a new project called h-to-md.

it is basically a html to markdown converter.

but i didn’t want the usual “install half the universe just to convert a page” kind of thing.

i wanted something small, zero deps and duper fast. got the clanker to work (gpt 5.5 great model btw)

and, h-to-md happened.

it takes html and turns it into markdown.

no browser dom, no weird third part bottleneck, brutally fast (sub 30ms for 5mb html was the goal), just convert the thing and move on

some have been pushing a standard for agents to negotiate html pages as mardown instead when needed.. you know to save token. and they are right.

markdown is cleaner, it is easier to scan, and would not pollute content with uncessary headers, tags, and script files the agent don’t need.

cloudflare has a proxy that does this at edge, but only avail in pro domain teir.

the whole thing is pretty small (less than 26kb)

import { htmlToMarkdown } from 'h-to-md';

const markdown = htmlToMarkdown('<h1>Hello</h1><p><strong>fast</strong> output.</p>');

or use tubo for aggressive speed.

import { htmlToMarkdownTurbo } from 'h-to-md';

and that’s the vibe.

you give it html.

it gives you markdown.

also the benchmarks looks great:

h-to-md benchmarks on turbo vs normal

h-to-md benchmarks on turbo vs normal

62 mb of html per second is insane “(0-0)”

anyways, if you want to check it out: Abdulmumin1/h-to-md

and yeah, that is h-to-md.

super duper fast html to markdown.

/built-by-me

Owostack

Usage-based Billing Engine for AI Saas

Thirdpen

Personalised interactive learning with AI

Littlestats

Analytics for solo makers

/share