mdgate converters

AZW3 to Markdown in your browser.

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

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

Starting local converter

Use AZW3 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 AZW3 to Markdown works

  1. AZW3
  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 AZW3 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

AZW3 files can stay inside your application or browser.

Content detection

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

Deterministic parsing

The same AZW3 file produces repeatable Markdown without model inference.

Small runtime surface

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

AZW3 for AI agents

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

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

Need more than AZW3?

One format

@mdgate/mobi

Your own set

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

Broad file support

@mdgate/converters

FAQ

Can I convert AZW3 to Markdown without uploading it?

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

Does AZW3 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 AZW3 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.