2ClickKit

AZW3 to EPUB Converter

Files Never Leave Your Device

Convert Amazon Kindle Format 8 (.azw3, .kf8) eBooks into open, standard EPUB 3 publications with images, styles, and table of contents.

Drop your Kindle AZW3 / KF8 eBook here or click to browse

100% in-browser processing. Converts AZW3 into open standard EPUB (.epub).

Technical Architecture: Unpacking Amazon Kindle Format 8 (KF8/AZW3)

When Amazon introduced the Kindle Touch and Kindle Fire, it unveiled Kindle Format 8 (KF8), distributed under the file extension .azw3. KF8 succeeded the older Mobipocket 6 (MOBI) architecture by introducing support for HTML5 semantic elements, CSS3 selectors, embedded TrueType fonts, and Scalable Vector Graphics (SVG).

However, instead of adopting the open W3C EPUB container, Amazon encapsulated this rich modern HTML5 codebase within the historical PalmOS Database (PDB) container format. Converting AZW3 to standard EPUB 3 requires peeling back this proprietary binary wrapper, decompressing LZ77 data slices, extracting trailing binary assets, and synthesizing an open IDPF-compliant package.

Internal Structure of the AZW3 / KF8 Container

An AZW3 file is indexed through a contiguous array of binary Palm records. To unpack the contents, 2ClickKit interprets the following record layout:

Record Range Internal Identifier Payload & Significance in KF8
Record 0 PalmDOC & MOBI Header Specifies compression type, text length, MOBI version (>= 8), full book title offset, and EXTH flags.
Record 0 + EXTH Extended Metadata Block Contains bibliographic Dublin Core records: Author (Tag 100), Publisher (101), ASIN/ISBN (104), and Language (524).
Records 1 to K Compressed Text Slices PalmDOC LZ77 compressed byte streams representing contiguous segments of the master KF8 HTML5 markup.
Records K+1 to M Index & Skeleton Tables Internal Kindle navigational indices, dictionary keys, and skeleton reference pointers.
Records M+1 to End Binary Media Resources Raw image streams (JPEG 0xFFD8FF, PNG 0x89504E47, GIF 0x47494638, SVG) and embedded fonts.

Decompressing PalmDOC LZ77 in WebAssembly & JavaScript

Each text record in an AZW3 package is compressed using the PalmDOC LZ77 sliding-window algorithm. To decompress these records in the browser without third-party binary dependencies, 2ClickKit evaluates byte streams in real time:

  • Literal Tokens (0x01 to 0x08, 0x09 to 0x7F): Copied directly into the decoded UTF-8 array.
  • Distance / Length Pairs (0x80 to 0xBF): Combines b0 and b1 to compute a backward seek distance ((b0 & 3) << 8 | b1) and match length (((b0 >> 2) & 7) + 3), copying previously decompressed words into the current stream.
  • Space Character Encodings (0xC0 to 0xFF): Emits an ASCII space character (0x20) followed by the character b0 ^ 0x80, achieving high compression on English text.

Synthesizing Open EPUB 3 Packages

Once the entire HTML5 document and trailing image assets are extracted, 2ClickKit repackages the assets into a valid EPUB 3 ZIP archive conforming to W3C recommendations:

  1. Uncompressed Mimetype: The first entry in the ZIP is the 20-byte string application/epub+zip stored with zero compression (Deflate level 0).
  2. Container Resolution: Writes META-INF/container.xml pointing to OEBPS/content.opf.
  3. Package Manifest & Spine: Creates the OPF file cataloging every XHTML chapter file, embedded illustration, and stylesheet, defining the sequential reading order.
  4. Dual Navigation Documents: Generates both modern HTML5 nav.xhtml with epub:type="toc" and legacy EPUB 2 toc.ncx to ensure universal playback on modern and older e-readers alike.

Comparison: 2ClickKit vs Calibre vs Cloud Conversion Portals

Benchmark / Feature 2ClickKit (In-Browser) Calibre (Desktop App) CloudConvert / Zamzar
Installation Footprint 0 MB (Web Browser Tab) ~180 MB Native Install None (Web Browser)
File Security & Privacy 100% Client-Side RAM Local Desktop Machine Uploaded to Remote Servers
Mobile Compatibility iOS, Android, ChromeOS Desktop Only (Win/Mac/Linux) Mobile Web
Conversion Speed < 1.2 Seconds 4 - 8 Seconds 20 - 60 Seconds
Usage Quotas Completely Unlimited Free & Open Source Daily conversion caps

Developer Reference: Extracting AZW3 Resources in TypeScript

// Client-side snippet identifying embedded image records in Palm DB
function extractAzw3Images(records: Uint8Array[]): { name: string; data: Uint8Array }[] {
  const images = [];
  for (let i = 0; i < records.length; i++) {
    const r = records[i];
    if (r.length > 4) {
      // JPEG signature: FF D8 FF
      if (r[0] === 0xff && r[1] === 0xd8 && r[2] === 0xff) {
        images.push({ name: `img_${i}.jpg`, data: r });
      }
      // PNG signature: 89 50 4E 47
      else if (r[0] === 0x89 && r[1] === 0x50 && r[2] === 0x4e && r[3] === 0x47) {
        images.push({ name: `img_${i}.png`, data: r });
      }
    }
  }
  return images;
}

Tips for Reading Converted EPUB Books

  • Apple Books (iOS & macOS): Once downloaded, simply click the file to automatically import it into Apple Books with full typography customization, dark mode, and page flip animations.
  • Kobo E-Readers: Connect your Kobo via USB and transfer the EPUB directly into the device root or documents folder.

How to Use AZW3 to EPUB Converter

  1. Upload Kindle AZW3 eBook

    Select or drag and drop any .azw3, .azw, or .kf8 file. The container is unpacked locally in browser memory.

  2. Inspect Extracted Content

    The decoder unpacks PalmDOC LZ77 text records, extracts embedded illustrations, and maps chapter structures.

  3. Download Universal EPUB

    Click "Convert to Standard EPUB" to package a compliant EPUB 3 file that opens in Apple Books, Kobo, and Android.

Kindle KF8 to Standard EPUB Conversion

Uploaded Kindle AZW3 eBook
Treasure-Island-Stevenson.azw3 (580 KB, 34 chapters, 8 images)
Exported EPUB 3 eBook
Treasure_Island.epub (540 KB, HTML5 chapters, embedded images, dual TOC)

Decompressed and packaged in 1.1 seconds with 100% private in-browser execution.

Technical Specifications

  • Supported Inputs: Kindle Format 8 (.azw3, .kf8), EPUB 3 (.epub)
  • Input Limit: Unlimited (100% In-Browser Memory)
  • Processing Engine: 100% In-Browser (Palm Database KF8 Decoder + EPUB 3 Packaging)
  • Content Uploads: None (Your files and text are processed locally on your device with zero uploads)

Privacy & Security Guarantee

Your Kindle eBooks, illustrated books, and reflowable publications are processed entirely in your web browser's memory using native client-side web technologies. Unlike traditional cloud tools, your content is never uploaded to remote servers, stored on external disks, or analyzed by third parties.

2ClickKit In-Browser vs Traditional Cloud Tools

Feature 2ClickKit (In-Browser) Traditional Cloud Services
Data Privacy Files never leave your local device Uploaded to remote servers and third-party clouds
Processing Speed Instant local execution (0ms upload time) Constrained by internet upload & server processing queues
Account & Costs 100% Free with zero registration or paywalls Tiered subscriptions, limits, or forced sign-ups

Best Practices & Tips

  • For reading on iPad or Mac, simply AirDrop or double-click the downloaded EPUB file to add it directly to Apple Books.
  • If you are transferring books to a Kobo e-reader, connect via USB and drag the EPUB directly into your Kobo storage drive.
  • Confirm the Author and Title fields are filled before downloading to ensure proper sorting in your digital library.

Frequently Asked Questions

What is AZW3 and how does it compare to EPUB?

AZW3 (also known as Kindle Format 8 or KF8) is Amazon proprietary eBook format introduced with the Kindle Fire and Paperwhite. It supports HTML5 markup and CSS3 styling wrapped inside a Palm Database container. EPUB is the worldwide open publishing standard supported by all non-Amazon e-readers. Converting AZW3 to EPUB liberates your digital books for reading on Kobo, iPad, Tolino, and desktop reading apps.

Will images and CSS styling be retained in the converted EPUB?

Yes. 2ClickKit unpacks trailing binary records to reconstruct embedded JPEG, PNG, GIF, and SVG images and generates a clean modern stylesheet preserving headings, indented paragraphs, blockquotes, and typographical hierarchy.

How does in-browser conversion guarantee book privacy?

Traditional file converters transmit your eBooks to third-party cloud servers where books can be logged or retained. 2ClickKit runs 100% inside your local browser using client-side JavaScript and HTML5 Blob APIs. Zero bytes of your book ever leave your computer or phone.

Can I convert DRM-protected AZW3 books downloaded from Kindle Unlimited?

No. eBooks protected by Amazon FairPlay or proprietary Kindle DRM encryption must have DRM removed in authorized software before conversion. 2ClickKit converts standard, non-DRM AZW3/KF8 files.

Does the converted EPUB include a working Table of Contents?

Yes. The generated EPUB 3 archive includes both a modern HTML5 navigation document (nav.xhtml) and an EPUB 2 NCX navigation map (toc.ncx) for flawless table of contents jumping on all reading devices.

Can I run this converter on an iPad or Android tablet?

Yes. 2ClickKit works natively in mobile browsers like Safari and Chrome. You can load eBooks stored in iCloud Drive, Google Drive, or your Files app and download the EPUB directly.

Is there a limit on how many AZW3 books I can convert?

There are no artificial usage caps, hourly limits, or paywalls. You can convert an unlimited number of books of any size.