mdgate converters

AZW to Markdown in your browser.

Convert AZW files to GitHub-Flavored Markdown directly in your browser.

Your AZW stays on your device. No upload. No account.

Starting local converter

Use AZW to Markdown in your app

$ npm install @mdgate/mobi

import { toMarkdown } from '@mdgate/mobi';

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

How AZW to Markdown works

  1. AZW
  2. PalmDOC / MOBI parsing
  3. text records · KF8 HTML
  4. GitHub-Flavored Markdown

Built for JavaScript runtimes

Node.js

Read local files, uploads, S3/R2 objects, and other byte sources.

Cloudflare Workers

Parse MOBI and AZW files directly inside Workers without Kindle software or a native binary.

Browser

Convert AZW locally without uploading it to a server.

Edge

Run the same TypeScript converter in compatible Edge runtimes.

What @mdgate/mobi extracts

  • Uncompressed PalmDOC
  • PalmDOC LZ77
  • HUFF/CDIC compression
  • KF8/AZW3 XHTML when it can be isolated
  • DRM-encrypted book detection

Why @mdgate/mobi

Runs where your JavaScript runs

No separate processing service. The converter is TypeScript you can call from Node.js, Cloudflare Workers, Edge runtimes, and browsers.

Local conversion

AZW files can stay inside your application or browser.

Content detection

Recognizes AZW files from their contents, not only the filename.

Deterministic parsing

The same AZW file produces repeatable Markdown without model inference.

Small runtime surface

No Python. No native addons. No WASM. No third-party runtime dependencies.

AZW for AI agents

Turn AZW files into content your agent can actually work with.

  1. AZW
  2. Markdown
    • grep
    • search
    • chunk
    • index
    • cache
    • cite
    • reason

Need more than AZW?

One format

@mdgate/mobi

Your own set

@mdgate/core
+ @mdgate/mobi
+ @mdgate/pdf
+ @mdgate/docx

Broad file support

@mdgate/converters

FAQ

Can I convert AZW to Markdown without uploading it?

Yes. AZW files can be converted locally in the browser.

Does AZW to Markdown work in Cloudflare Workers?

Yes. @mdgate/mobi runs directly in Cloudflare Workers.

Does it require Python?

No.

Does it require native addons or WASM?

No.

What does it output?

GitHub-Flavored Markdown.

Can I install only the AZW converter?

Yes. Install @mdgate/mobi instead of the complete converter set.

Does it extract images and a table of contents?

No. Images, fonts, audio, NCX indexes, and Topaz (TPZ) files are not extracted. Some AZW3 books lose structure.