DRM Removal Tools for eBooks

Version 6.5.3 released on 12 January, 2017

Welcome to Apprentice Alf’s blog

This blog is intended to help anyone looking for free and simple software for removing DRM from their Kindle ebooks, stripping DRM from their Adobe Digital Editions ebooks, getting rid of DRM from their Barnes and Noble ebooks, freeing their Kobo ebooks of DRM, or decrypting their Fictionwise eReader ebooks.

If you want to find out more about ebooks, DRM and why you will probably want to remove the DRM from your ebooks, see this post:  Ebook Formats, DRM and You — A Guide for the Perplexed.

If you already know that you want to strip the DRM from your ebooks, you’ve found the right place.

The Tools

To get started on removing DRM from your ebooks, just download the tools archive from the link below. Unzip the archive, and start reading.

The latest release can be found at the top of this page:
https://github.com/apprenticeharper/DeDRM_tools/releases

Getting Help with the Tools

If you have any questions about the tools, ebooks, and DRM, check the FAQs at the GitHub repository:
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

If you have any problems with the current tools, please ask for help in a comment on this post or open a new issue at the GitHub repository. If you are having a problem with an older version of the tools, please first update to the current version, and see if that solves your problem.

Before commenting here, please check the ReadMe file and the FAQs (see link above).

In any bug report or help request, please include:

  • which tool was used
  • which OS you are using
  • where the ebook file came from (device or application)
  • any error messages
  • a log of the DRM-removal attempt (see the FAQs on how to get a log).

Anti-Piracy Notice

Please only use these tools for gaining full access to your own ebooks for archiving/conversion/convenience. De-drmed ebooks should not be uploaded to open servers, torrents, or other methods of mass distribution. No help will be given to people doing such things. Authors, retailers and publishers all need to make a living, so that they can continue to produce books for us to read. Don’t be a parasite.

Origin of the Tools

The tools for removing DRM from ePubs were originally posted at i♥cabbages’ blog. The tools for Kindle/Mobipocket were originally posted at The Dark Reverser’s blog.

They have since been improved by many people, but mostly some_updates, DiapDealer, Apprentice Alf, and Apprentice Harper. While there are many sites that redistribute these tools, the most up-to-date versions of the tools are currently released here.

Other Sources

Anyone trying to sell you ebook DRM removal tools for Adobe Adept ePub and PDFs, Barnes & Noble ePubs, Kindle ebooks, Kobo ebooks, or eReader ebooks has probably just repackaged (an earlier) version of the tools available here.

Advertisements

3,430 thoughts on “DRM Removal Tools for eBooks

  1. I couldn’t load the plugin onto calibre. I’m running Windows 10, 64 bit. Here is my error message:

    calibre, version 2.85.1
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’C:\Users\scott\Downloads\DeDRM_tools_6.5.3.zip’ is invalid. It does not contain a top-level init.py file

    calibre 2.85.1 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 317, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 460, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 59, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 192, in load
    File “site-packages\calibre\customize\zipplugin.py”, line 290, in _locate_code
    InvalidPlugin: The plugin in u’C:\Users\scott\Downloads\DeDRM_tools_6.5.3.zip’ is invalid. It does not contain a top-level init.py file

  2. I recently purchased an ebook on booklive.jp and I’ve tried to remove the DRM from it using Calibre. However, it doesn’t seem to be working. Is it possible to do this? I don’t want to purchase any other books from them unless I can remove the DRM.

      • Yeah, I tried to import it through Adobe Digital Editions 3.0 and it says that “Errors were encountered”. I decided to use a Hex editor to see what I could find within the epub file and got this from the header:

        ….ftypodcf….odcf….odrm…..’ž>…….^odhe…..application/vnd.oma.drm.dcf…6ohdr………..’.œ……urn:booklive:cid:411108007….odda..

        Does any of this help identify what kind of DRM I’m dealing with here?

        • If you can open it with ADE 2.0.1 authorized with your Adobe ID, then it has the type of Adobe DRM which can be removed by these tools. If you can only read it in ADE 3 or newer, then it has DRM which can’t be removed yet.

          • Thanks for the advice thus far.

            I tried to open the file with ADE 2.01 and 3.0. Neither version can open it. It always says “Unable to add document. Errors were encountered with this item”

            When I try and open it up in Calibre, I get the following error details:

            calibre, version 2.85.1
            ERROR: Could not open e-book: Failed to read book, C:\Users\karyu_000\Documents\Calibre Library\Unknown\0 EB000041110800700101502021 (5)\0 EB000041110800700101502021 – Unknown.epub click “Show Details” for more information

            Traceback (most recent call last):
            File “site-packages\calibre\utils\ipc\simple_worker.py”, line 286, in main
            File “site-packages\calibre\ebooks\oeb\iterator\book.py”, line 64, in extract_book
            File “site-packages\calibre\customize\conversion.py”, line 245, in call
            File “site-packages\calibre\ebooks\conversion\plugins\epub_input.py”, line 247, in convert
            File “site-packages\calibre\utils\localunzip.py”, line 231, in extractall
            File “site-packages\calibre\utils\localunzip.py”, line 218, in _extractall
            ValueError: Not a ZIP file

              • The DeDRM tools work with EPUBs downloaded with Adobe Digital Editions 2.0.1 (Kobo, Google), Kindle books, and Barnes & Noble EPUBs. Obok handles Kobo kepubs.

                • Thanks very much for your help! I’ll try purchasing from one of those vendors instead, and see if I have better luck!

                  • Okay so I purchased another book – this time via books.rakuten.co.jp (they use Kobo) and I’ve located the folder where the kepub file is stored. I made a copy of the file and renamed it to a .kepub file and tried to import it into Calibre. While it does display the title, author and publisher in the list, when i try and open the book, it comes up as garbage text. Have I missed a step somewhere? Thanks again for the continued help!

                    • Okay I got it to work! I did what you said about the Obok plug-in. That did the trick! Thank you so much for all the help. Totally appreciate it!

  3. Hi, I installed the plugins on calibre and everything went good, but when I try to convert an ebook it still tells me it can’t break the DRM protection.
    Can you help me? Thanks

  4. Hello I am running a mac 10.6.8 and therefore using an older version of calibre (1.48). I could install the plugin fine but then I import the ebook from my reader and the DRM is still active. Thanks for your help! Here is the log from the debug:

    InputFormatPlugin: MOBI Input running
    on /Users/thierrygarcia/Thierry/home/Calibre/Datis Kharrazian/Why Do I
    Still Have Thyroid Symptoms_ When My Lab Tests Are Normal_ A revolutionary
    breakthrough (15)/Why Do I Still Have Thyroid Symptoms_ When – Datis
    Kharrazian.azw3
    Found KF8 MOBI of type ‘standalone’
    calibre Debug log
    calibre 1.48 isfrozen: True is64bit: True
    Darwin-10.8.0-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘10.8.0’, ‘Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT
    2011; root:xnu-1504.15.3~1/RELEASE_I386’)
    Python 2.7.5
    OSX: (‘10.6.8’, (”, ”, ”), ‘i386’)
    Starting up…
    Started up in 19.45 seconds with 2 books
    Worker Launch took: 0.146527051926
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.5.3: Trying to decrypt Why Do I Still Have Thyroid
    Symptoms_ When My Lab Tests Are Normal_ A revolutionary breakthrough in
    und_B00A3KO1Q6.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 256
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Why Do I Still Have Thyroid
    Symptoms? When My Lab Tests Are Normal: A revolutionary breakthrough in
    understanding Hashimoto’s disease and hypothyroidism
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.3: Failed to decrypt with error: No key found in 0 keys
    tried.
    DeDRM v6.5.3: Looking for new default Kindle Key after 0.1 seconds
    Found k4Mac kinf2011 file: /Users/thierrygarcia/Library/Application
    Support/Kindle/storage/.kinf2011
    Found k4Mac kindle-info file: /Users/thierrygarcia/Library/
    Application Support/Kindle/storage/.kindle-info
    Decrypted key file using IDString ‘a5ba56fb736a’ and UserName
    ‘thierrygarcia’
    Couldn’t decrypt file.
    DeDRM v6.5.3: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 256
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Why Do I Still Have Thyroid
    Symptoms? When My Lab Tests Are Normal: A revolutionary breakthrough in
    understanding Hashimoto’s disease and hypothyroidism
    Found 4 keys to try after 1.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.3: Ultimately failed to decrypt after 1.1 seconds.
    Read the FAQs at Harper’s repository: https://github.com/
    apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 154, in
    _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 610, in run
    File “calibre_plugins.dedrm.init“, line 560, in
    KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 1.1
    seconds
    Added Why Do I Still Have Thyroid Symptoms? When My Lab Tests Are Normal: A
    revolutionary breakthrough in understanding Hashimoto’s disease and
    hypothyroidism to db in: 0.780879020691 seconds
    Worker Launch took: 0.421769142151

  5. Hi,

    Is this legal to use? I have an Amazon Kindle and I want to buy a Nook e-book. So I will not pirate a book I just want to read a bought Nook book on my Kindle. Can this cause me any problem from Amazon (disable my Kindle for punishment)?

    • DRM removal is a legal grey area. I’m not a lawyer, but I personally feel that you’re reasonably safe as long as you’re only doing so for your own personal use. I can’t imagine Amazon would actually check to see if your sideloaded books had DRM removed. In general, I think publishers are much more concerned about DRM than ebook sellers. But as long as you purchased a legal copy and you’re not sharing it around, they wouldn’t know and shouldn’t care either.

  6. Windows 7 32, Kindle for Windows 1.20.1, Calibre debug follows.
    Imported the ebook fine but when try to open it gave the DRM cannot do error.
    It seems that it is KFX format. When are you going to go over this hurdle?

    calibre Debug log
    calibre 2.85.1 embedded-python: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.9
    Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM (6, 5, 3)
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 72.035450517 x 72.0
    Starting up…
    Started up in 12.70 seconds with 219 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘(\xfb\xc1W\xab\xa8\xbd\xcc6\xa6K}hm\xa5p5]\x9f\x81\x0f1j\x90\x03O\xc8-r\x96\xc4’, ‘\\SMS.na.an.net\Users\DRG4\My Documents\My Kindle Content\B0013TR80_EBOK\B0013TR80_EBOK.azw’]
    DeDRM v6.5.3: Trying to decrypt B0013TRR80_EBOK.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    DeDRM v6.5.3: Failed to decrypt with error: KFX format detected. This format cannot be decrypted yet.
    DeDRM v6.5.3: Looking for new default Kindle Key after 0.8 seconds
    searching for kinfoFiles in C:\Users\DRG4\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\DRG4\AppData\Local\Amazon\Kindle\storage.kinf201
    Decrypted key file using IDString ‘3266446047’ and UserName ‘6769616e6e16b70’
    DeDRM v6.5.3: Found 1 new key
    DeDRM v6.5.3: Ultimately failed to decrypt after 0.9 seconds.
    Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 170, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 610, in run
    File “calibre_plugins.dedrm.init“, line 560, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 0.9 seconds
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 416, in get_file_type_metadata
    File “site-packages\calibre\customize\builtins.py”, line 284, in get_metadata
    File “site-packages\calibre\ebooks\metadata\mobi.py”, line 494, in get_metadata
    File “site-packages\calibre\ebooks\mobi\reader\headers.py”, line 284, in init
    File “site-packages\calibre\ebooks\mobi\reader\headers.py”, line 312, in identity
    MobiError: Unknown book type: ÄÞ|Œ”
    Added B0013TRR80 EBOK to db in: 3.0
    Added 1 books in 4.8 seconds
    Worker Launch took: 0.280999898911

  7. So I have the plugin installed and everything, but when I import books that I downloaded from the kindle for PC App, it tells me that the files are still DRMed. I have removed them from the library, then re-imported the books without success. I am running Calibre 64 bit.

    I reinstalled calibre as well thinking that might work. Do I need to have calibre and DeDRM installed first, before installing the kindle app, in order for calibre to grab the key? SHould I reinstall the kindle app?

    Thanks guys

  8. I recently installed the latest calibre plug in and Kindle for PC version 1.20.1. I used kindle for PC to download a book which appeared as expected with an AZW extension under ‘My Kindle content. When I imported it there was no indication that this was a KFX – but the file was NOT converted on import and could NOT be read

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s