Runs where your JavaScript runs
Node.js, Cloudflare Workers, Edge runtimes, and browsers. No second runtime required.
Convert PDF, Word, Excel, PowerPoint, Apple iWork, HWP, email, ebooks, and dozens of other formats to GitHub-Flavored Markdown.
Your files stay on your device. No upload. No account.
Starting local converter
Try a sample:
Dashed badges need a callback (vision for raster images,
transcription for audio, video understanding for video) and are not registered by
all(). SVG converts locally.
$
npm install @mdgate/converters
// Everything
import { toMarkdown } from '@mdgate/converters';
const markdown = await toMarkdown(bytes, {
path: filename,
});
// One format
import { toMarkdown } from '@mdgate/pdf';
const markdown = await toMarkdown(bytes);
// Your own converter
import { create } from '@mdgate/core';
import { pdf } from '@mdgate/pdf';
function myFormat() {
return {
id: 'my-format',
sniff(bytes, hint) {
if (looksLikeMine(bytes)) return 2;
if (hint?.path?.endsWith('.mine')) return 1;
return 0;
},
convert(bytes) {
return { markdown: parseMine(bytes) };
},
};
}
const toMarkdown = create([myFormat(), pdf()]);
const markdown = await toMarkdown(bytes);
Pure TypeScript, Node.js, Cloudflare Workers, Edge, Browser, No Python, No native addons, No WASM, Zero third-party runtime dependencies
Turn Word, spreadsheets, presentations, email, PDFs, and other real-world files into Markdown your agent can grep, search, chunk, index, cite, and reason over.
Node.js, Cloudflare Workers, Edge runtimes, and browsers. No second runtime required.
Deterministic formats can be converted without sending the document to an external parsing service.
PDF signatures, Office containers, OLE streams, package metadata, and other format signals are detected from the bytes.
Documents from different ecosystems converge on a consistent GitHub-Flavored Markdown representation.
No. The converter on this page runs in a Web Worker and locally supported files stay in your browser.
PDF, Word, Excel, PowerPoint, OpenDocument, Apple iWork, HWP, WPS, email, OneNote, Visio, ebooks, archives, data files, and more.
Yes. The converters are written in TypeScript and run in Cloudflare Workers without Python, native addons, or WASM.
Yes. For example, use @mdgate/pdf, @mdgate/docx, or @mdgate/hwp.
Deterministic document content is parsed locally. Media that requires model understanding can be connected to a model callback supplied by your application.