<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Calibre on Sysadmin Tales</title>
    <link>https://blog.ssb-tech.net/tags/calibre/</link>
    <description>Recent content in Calibre on Sysadmin Tales</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 02 Oct 2026 21:39:10 -0400</lastBuildDate>
    <atom:link href="https://blog.ssb-tech.net/tags/calibre/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Using Calibre and the DeDRM plugin to strip DRM from Amazon eBooks</title>
      <link>https://blog.ssb-tech.net/posts/removing-amazon-drm/</link>
      <pubDate>Sun, 15 Feb 2026 20:58:33 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/removing-amazon-drm/</guid>
      <description>&lt;h1 id=&#34;using-calibre-and-the-dedrm-plugin-to-remove-drm-from-amazon-ebooks&#34;&gt;Using Calibre and the DeDRM plugin to remove DRM from Amazon eBooks&lt;/h1&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;m not going to spend too much time going over this as there are plenty of screenshots in other guides, two of which I&amp;rsquo;ve linked at the bottom of this page.&lt;/p&gt;&#xA;&lt;p&gt;However I felt their instructions were a bit all over the place and hard to follow, so here&amp;rsquo;s my own notes.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;&lt;h3 id=&#34;disclaimer&#34;&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt;&lt;/h3&gt;&#xA;&lt;p&gt;This should only be used with Amazon eBooks that you legally own.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;h2 id=&#34;steps&#34;&gt;Steps&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install Kindle for PC 2.8.0. As of 2026-02-15 this is the version available from Amazon&amp;rsquo;s own website.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;&lt;strong&gt;As soon as you get it installed, open the program&amp;rsquo;s options menu and disable updates.&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;You&amp;rsquo;ll need to sign into your Amazon account and download whatever books you&amp;rsquo;d like to strip DRM from.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Go to this repository: &lt;a href=&#34;https://github.com/Satsuoni/DeDRM_tools/&#34;&gt;Satsuoni/DeDRM repo&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Under the releases tab, you &lt;em&gt;need&lt;/em&gt; to download one of the pre-releases, the current stable version doesn&amp;rsquo;t work to strip the more recent KFX encryption.&lt;/li&gt;&#xA;&lt;li&gt;Download the zip file and extract it. There will be several more zip files within it, do &lt;em&gt;not&lt;/em&gt; extract those as that is the format Calibre expects for plugins.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Copy the &lt;code&gt;KFXKeyExtractor28.exe&lt;/code&gt; file into &lt;code&gt;%localappdata%\Amazon\Kindle\application&lt;/code&gt;.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;You&amp;rsquo;ll need to run a command similar to this one to grab the keys from your downloaded books:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-cmd&#34; data-lang=&#34;cmd&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  C:\Users\ssbtech\AppData\Local\Amazon\Kindle\application\KFXKeyExtractor28.exe &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;C:\Users\ssbtech\Documents\My Kindle Content&amp;#34;&lt;/span&gt; kindlekey.txt kindle_account.k4i&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This application is what gathers the keys needed by the Calibre DeDRM plugin to strip the DRM.&lt;/p&gt;&#xA;&lt;p&gt;&lt;span style=color:red&gt;&lt;em&gt;&lt;strong&gt;You need to run this every time you download new books! Every book you download has a unique key!&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xA;&lt;p&gt;I created this convenience batch script that I run every time I download a new book to strip the DRM from.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-cmd&#34; data-lang=&#34;cmd&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;@&lt;span style=&#34;color:#66d9ef&#34;&gt;echo&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;cd&lt;/span&gt; C:\users\ssbtech&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;C:\Users\ssbtech\AppData\Local\Amazon\Kindle\application\KFXKeyExtractor28.exe&lt;span style=&#34;color:#75715e&#34;&gt; &amp;#34;C:\Users\ssbtech\Documents\My Kindle Content&amp;#34; kindlekey.txt kindle_account.k4i&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Next we need to configure the DeDRM plugin in Calibre. Install &lt;a href=&#34;https://calibre-ebook.com/&#34;&gt;Calibre for PC&lt;/a&gt; and navigate through the welcome wizard.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Once it drops you on the main screen, go into Preferences &amp;gt; Plugins.&lt;/li&gt;&#xA;&lt;li&gt;Click on &amp;ldquo;Add Plugin From File&amp;rdquo;. You&amp;rsquo;ll want to add the &lt;code&gt;DeDRM_plugin.zip&lt;/code&gt; file that was in the zip you extracted earlier.&lt;/li&gt;&#xA;&lt;li&gt;Click on OK to go back to the application, don&amp;rsquo;t restart Calibre yet. Click on &amp;ldquo;Get Plugins&amp;rdquo;. Search for a plugin called &lt;code&gt;KFX Input&lt;/code&gt; and install that, too.&lt;/li&gt;&#xA;&lt;li&gt;Now you can let Calibre restart to make sure that your new plugins are loaded.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Open the plugins menu once more and find the DeDRM plugin that you installed earlier.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Click on &amp;ldquo;Customize Plugin&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;Click on &amp;ldquo;Kindle for PC/MAC eBooks&amp;rdquo; and then &amp;ldquo;Import existing keyfiles&amp;rdquo;. You&amp;rsquo;ll want to import the &lt;code&gt;.k4i&lt;/code&gt; file that we created earlier.&lt;/li&gt;&#xA;&lt;li&gt;Next, click on &amp;ldquo;Set Keyfile&amp;rdquo; and set it to the &lt;code&gt;kindlekey.txt&lt;/code&gt; file that was created along with the &lt;code&gt;.k4i&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;At this point you&amp;rsquo;re ready to import Kindle eBooks and strip them of DRM.&lt;/li&gt;&#xA;&lt;li&gt;Click on &amp;ldquo;Add Books&amp;rdquo;. Kindle for PC stores the eBooks under your Documents folder (&lt;code&gt;%USERPROFILE%\Documents\My Kindle Content&lt;/code&gt;).&#xA;&lt;ul&gt;&#xA;&lt;li&gt;They&amp;rsquo;re stored in folders that look like strings of random characters, but inside of each of them is a &lt;code&gt;.azw&lt;/code&gt; file, that&amp;rsquo;s your eBook. Import that into Calibre.&lt;/li&gt;&#xA;&lt;li&gt;If you did it right, it will show as type &lt;code&gt;KFX&lt;/code&gt;, which you can then convert to EPUB.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;troubleshooting&#34;&gt;Troubleshooting&lt;/h2&gt;&#xA;&lt;h3 id=&#34;files-showing-kfx-zip-extension-instead-of-kfx-cant-strip-drm&#34;&gt;Files showing KFX-ZIP extension instead of KFX, can&amp;rsquo;t strip DRM.&lt;/h3&gt;&#xA;&lt;p&gt;If the files you&amp;rsquo;re importing show the type &lt;code&gt;KFX-ZIP&lt;/code&gt; instead of &lt;code&gt;KFX&lt;/code&gt; that means that they&amp;rsquo;re still encrypted and can&amp;rsquo;t be run through the DRM stripping process.&lt;/p&gt;&#xA;&lt;p&gt;&lt;span style=color:red&gt;&lt;em&gt;This is usually because you didn&amp;rsquo;t re-run KFXKeyExtractor28.exe after downloading a new book.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xA;&lt;p&gt;Remove the book from Calibre, then re-run the batch script we created earlier so it grabs the new keys for the newly downloaded books.&lt;/p&gt;&#xA;&lt;p&gt;If that doesn&amp;rsquo;t work, I&amp;rsquo;d probably start by going back to the GitHub repo and seeing if there&amp;rsquo;s a new release or a new method. Amazon is constantly changing their DRM to make it more difficult to remove.&lt;/p&gt;&#xA;&lt;h3 id=&#34;converted-files-are-huge&#34;&gt;Converted files are huge&lt;/h3&gt;&#xA;&lt;p&gt;This is because of the images embedded into the EPUB file.&lt;/p&gt;&#xA;&lt;p&gt;I typically recommend setting your &amp;ldquo;device&amp;rdquo; in Calibre to something like an actual Kindle e-Reader.&lt;/p&gt;&#xA;&lt;p&gt;Calibre will automatically scale images based on that option. If you chose the &amp;ldquo;Generic&amp;rdquo; type it won&amp;rsquo;t scale the images down at all.&lt;/p&gt;&#xA;&lt;p&gt;Just make sure when you change the device type to an Amazon eReader that it didn&amp;rsquo;t override your default output type.&lt;/p&gt;&#xA;&lt;p&gt;Go under Preferences &amp;gt; Behavior and set the &amp;ldquo;Preferred output format&amp;rdquo; to EPUB.&lt;/p&gt;&#xA;&lt;h2 id=&#34;links-to-the-guides-i-used&#34;&gt;Links to the guides I used&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://techy-notes.com/remove-drm-from-kindle-ebooks/&#34;&gt;Techy-notes guide&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://thecodeshewrites.com/2025/02/25/how-to-remove-drm-from-amazon-kindle-adobe-ade-ebooks-for-free/&#34;&gt;Thecodeshewrites guide&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;</description>
    </item>
  </channel>
</rss>
