Tools v6.0.9 Posted

I have posted version 6.0.9 of the tools. Please update to the latest version if you are having issues.

My apologies to anyone that has sent me an email. Please bear with me as I work my way through them.

The latest version (v6.0.9) does not contain any new features or bug fixes and adds support for the upcoming version of Calibre. There is no need to upgrade the tools from the previous version (v6.0.8) if you are not upgrading to the latest version of Calibre.

Please notify me if these tools fail on your books.

The latest tools_v6.0.9.zip can be downloaded from
http://bayfiles.net/file/1iXSZ/Nweufd/tools_v6.0.9.zip

File host suggestions are welcome.

Changes in 6.0.9:

  • Compatibility fixes for QT5

Changes in 6.0.8:

  • Fixes invalid topaz files

Changes in 6.0.7:

  • Fixes wine key creation folder issue.
  • Fixes DeDRM of PDFs with broken metadata.

Changes in 6.0.6:

  • Fixed up an incorrect function call. (Only relevant for Linux users using Wine)

Changes in 6.0.5:

  • Fixed a problem that resulted in key issues (thanks, Paul)

Changes in 6.0.4:

  • Fixed a problem in the plugin converting earlier preferences (thanks, enno)
  • Fixed a problem in the plugin with importing pdb files (thanks, Tina Bird)
  • Fixed a problem with unicode characters in path names for the Mac application (thanks, K)

Changes in 6.0.3:

  • Fixed a problem with non-ascii characters in Windows user name
  • Fixed a problem early versions of Kindle for Mac
  • Fix for location of DeDRMed PDF files with Macintosh DeDRM Application
  • Fix in Windows DeDRM application for paths with spaces
  • Restored ability for calibre plugin to call wine for Kindle for PC decryption key
  • Added ability for calibre plugin to call wine for Adobe Digital Edition key
  • Hopefully removed any dependency on tinter (although still used if available).
  • Updated the readmes

Tools v6.0.8 Posted

I have posted version 6.0.8 of the tools. Please update to the latest version if you are having issues

The latest tools_v6.0.8.zip can be downloaded from
http://www1.datafilehost.com/d/e9d6f3bc

Changes in 6.0.8:

  • Fixes invalid topaz files

Changes in 6.0.7:

  • Fixes wine key creation folder issue.
  • Fixes DeDRM of PDFs with broken metadata.

Changes in 6.0.6:

  • Fixed up an incorrect function call. (Only relevant for Linux users using Wine)

Changes in 6.0.5:

  • Fixed a problem that resulted in key issues (thanks, Paul)

Changes in 6.0.4:

  • Fixed a problem in the plugin converting earlier preferences (thanks, enno)
  • Fixed a problem in the plugin with importing pdb files (thanks, Tina Bird)
  • Fixed a problem with unicode characters in path names for the Mac application (thanks, K)

Changes in 6.0.3:

  • Fixed a problem with non-ascii characters in Windows user name
  • Fixed a problem early versions of Kindle for Mac
  • Fix for location of DeDRMed PDF files with Macintosh DeDRM Application
  • Fix in Windows DeDRM application for paths with spaces
  • Restored ability for calibre plugin to call wine for Kindle for PC decryption key
  • Added ability for calibre plugin to call wine for Adobe Digital Edition key
  • Hopefully removed any dependency on tinter (although still used if available).
  • Updated the readmes

DRM Removal Tools for eBooks

Last updated on 12th August, 2014

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, deleting the DRM from their Sony eBooks, 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 one of the links below. Unzip the archive, and start reading.

The latest tools_v6.0.9.zip can be downloaded from
http://bayfiles.net/file/1iXSZ/Nweufd/tools_v6.0.9.zip

The latest plugin alternative tools can be downloaded from
http://www1.datafilehost.com/d/215c36f6

  • The download link is the grey button. Uncheck the box “Use our download manager and get recommended downloads”
  • Do not click on the advert on the right-hand side of the page, even if it says “DOWNLOAD NOW”.
  • The download will be a .zip file. If your download is a .exe file do not run it, as you have downloaded the download manager. Make sure that the check box is unchecked
  • Make sure Javascript is enabled in your browser.
  • No credit card or payment of any kind is required to download the tools.
  • If you are worried about the integrity of the tools, listed below is the MD5 checksum.

MD5(tools_v6.0.9.zip)= 8445d0e4197de5ff4b0a6642c9f25e16
MD5(Other_Tools.zip)= 72e0f5357d3740455eb93d87e55ebcf9

Changes in 6.0.9:

  • Add compatibility for QT5

Changes in 6.0.8:

  • Fixes invalid topaz files

Changes in 6.0.7

  • Fixes wine key creation folder issue.
  • Fixes DeDRM of PDFs with broken metadata.

Changes in 6.0.6:

  • Fixed up an incorrect function call. (Only relevant Linux Calibre users using Wine)

Changes in 6.0.5:

  • Fixed a problem that resulted in key issues (thanks, Paul)

Changes in 6.0.4:

  • Fixed a problem in the plugin converting earlier preferences (thanks, enno)
  • Fixed a problem in the plugin with importing pdb files (thanks, Tina Bird)
  • Fixed a problem with unicode characters in path names for the Mac application (thanks, K)

Changes in 6.0.3:

  • Fixed a problem with non-ascii characters in Windows user name
  • Fixed a problem early versions of Kindle for Mac
  • Fix for location of DeDRMed PDF files with Macintosh DeDRM Application
  • Fix in Windows DeDRM application for paths with spaces
  • Restored ability for calibre plugin to call wine for Kindle for PC decryption key
  • Added ability for calibre plugin to call wine for Adobe Digital Edition key
  • Hopefully removed any dependency on tinter (although still used if available).
  • Updated the readmes

Getting Help with the Tools

If you have any questions about the tools, ebooks and DRM, check my FAQs post Frequently Asked Questions about the DRM removal tools.

If you have any problems with the current tools, please ask for help in a comment on this post. 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 folder)
  • 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 this application for gaining full access to your own ebooks for archiving/converson/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 and Apprentice Alf. 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 or eReader ebooks has probably just repackaged (an earlier) version of the tools available here.

— Alf.

DeDRM plugin for calibre: the simplest option for removing DRM from most ebooks

Last updated on 22nd March, 2013

About calibre

Calibre is a free, open source, ebook management and conversion utility created and maintained by Kovid Goyal. It is available for Windows, Mac OS X and Linux.

Calibre cannot, on its own, remove DRM from ebooks. However, it is possible to added third-party software (‘plugins’) to enhance calibre.

To be able to use the DeDRM plugin for calibre, it is necessary to install calibre first. The latest version can be downloaded from http://calibre-ebook.com/download.

The DeDRM plugin for calibre

The DRM removal plugin (DeDRM_plugin.zip) can be found in the tools archive linked from the most recent post in this blog. The DeDRM plugin can remove DRM from Kindle eBooks (but not rented Kindle ebooks, books download to a Kindle Fire or Fire HD, Kindle for Android, Kindle for iOS or the Windows 8 AppStore Kindle App), Barnes & Noble ePub ebooks, any ebooks using Adobe Digital Editions DRM (this includes ePubs from Kobo and Sony that are downloaded for Adobe Digital Editions), and the older Mobipocket and eReader ebooks. For other kinds of ebooks see the other posts in this blog.

Installing the DeDRM plugin for calibre

  1. Download the latest tools package, and unzip it.
    (On Windows, right-click and “Extract All…”; After extracting all, rename the tools_vX.X.X.zip file to tools_zipped_vX.X.X.zip to prevent later confusion)
  2. Run calibre. From the Preferences menu select “Change calibre behavior”.
    (Do not click “Get plugins to enhance calibre”, that option is reserved for ‘official’ calibre plugins.)
  3. Click on Plugins (under “Advanced”) — it looks like a jigsaw puzzle piece.
  4. Click on the large “Load plugin from file” button
  5. Navigate to the tools folder unzipped in step 2
  6. Open the “DeDRM_calibre_plugin” folder
  7. Select the DeDRM_plugin.zip file in that folder
  8. Click on the “Add” (sometimes “Open”) button.
  9. Click on the “Yes” button in the “Are you sure?” warning dialog that appears. A “Success” dialog will appear, saying that the plug-in has been installed. Click on “OK”.

Customising the plugin with encryption keys

On Macintosh and Windows systems no customisation is required for ebooks from Kindle for Mac/PC or Adobe Digital Editions (ADE), provided that calibre is run on the same computer and user account as the installation of Kindle for Mac/PC or ADE to which the books were downloaded. The default key is found and stored in the preferences automatically. Anyone using Linux should read the ReadMe file for details of how to obtain the keys manually.

For other sources of ebooks, or on Linux systems, you must configure the plugin. To configure the plugin, you must find it in the list of plugins. Usually calibre will have automatically selected the DeDRM plugin after you add it. If not, the DeDRM plugin can be found under “File Type plugins”. It might easier to find if you check the “Show only user installed plugins” checkbox. You might need to click on the triangle next to the “File Type plugins” label to show the list of File Type plugins.

If it’s not already selected, click on the DeDRM plugin in the list to select it, and then click on the Customize plugin button. This will open that main “Customise DeDRM” dialog which contains a set of buttons describing different type and sources of ebooks. If you have DRMed ebooks that match the description on any of the buttons, you will need to click on the button and enter the required information in the sub-dialog that will pop up.

All the dialogs have a help link in the top right of the dialog, that gives further information about the required information.

When all the configuration for your DRMed ebooks has been entered, click “OK” in the main dialog to save all the information you’ve entered. You’re now ready to remove the DRM from your ebooks.

Using the DeDRM calibre plugin

The DeDRM calibre plugin removes DRM from ebooks as they are imported into calibre. So to use the plugin, just import your DRMed ebooks into calibre, and the DRM will be removed. If you have already imported your ebooks into calibre, you will need to remove the DRMed ebooks and import them again.

You can check that the DRM has been removed from an imported ebook by trying to view it using calibre’s built-in viewer. Note that for .azw3 Kindel ebooks you might need to check a checkbox in calibre’s preferences to say that .azw3 ebooks should be viewed using calibre’s internal viewer.

If thing go wrong

The calibre developers are not involved in the development of the DRM removal plugin, and are not able to help with any DRM removal questions. If you have any difficulties following the instructions in this post, the calibre developers will not be able to help.

You must ask any questions about installing or using the DeDRM calibre plugin in a comment to most recent post on this blog.

Credits

Most of the work on converting the DRM removal scripts to a calibre plugin has been done by DiapDealer and Apprentice Alf.

Apple and ebooks: iBookstore DRM and how to remove it

Last updated on 22nd March, 2013

Requiem — Stripping DRM from Apple’s iBookstore Ebooks

Ebooks from Apple’s iBookstore are usually encrypted with Apple’s own Fairplay DRM scheme.

The only tool that removes Apple’s DRM is Requiem by Brahms. Requiem is not included in the main tools archive, and is separately maintained by its author, Brahms.

Version 4.x works with iTunes 10.6 and above, Windows and Mac OS X, but no longer removes DRM from iBooks.

The latest version to remove DRM from iBooks is 3.3.6 and works with iTunes 10.5.x, Windows and Mac OS X.

Requiem has a Tor website: http://tag3ulp55xczs3pn.onion. To reach the site using Tor, you will need to install Tor (http://www.torproject.org). If you’re willing to sacrifice your anonymity, you can use the regular web with tor2web. Just go to http://tag3ulp55xczs3pn.tor2web.com.

Alternatively, you can download it from these download links:

Requiem 3.3.6 for Windows: http://www.datafilehost.com/download-f7916922.html
MD5: 10ab191f2d86c692d57f6a07b4622cf8

Requiem 3.3.6 for Mac OS X: http://www.datafilehost.com/download-47fce8b7.html
MD5: 6d4167d47e6982ddbb8528212198b520

Requiem 3.3.6 source code: http://www.datafilehost.com/download-172920e9.html
MD5: 1636862796d573c693d56bcc526b60bd

If you have any problems with Requiem, I suggest you contact Brahms directly through their Tor website.

Anti-Piracy Notice

Please only use this application for gaining full access to your own ebooks for archiving/converson/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.

— Alf.

Frequently Asked Questions about the DRM removal tools

Last updated on 2nd April, 2013

Where can I find out more about ebook Formats and DRM Removal Tools?

  • This post explains the various ebook formats and DRM schemes. A guide for the perplexed.
  • This post describes how to install and use the DeDRM plugin for calibre.
  • This post gives the information you need to use the Windows DeDRM application which doesn’t need calibre.
  • This post gives the same information for the Mac OS X DeDRM application.
  • This post has links to downloading a zip archive of all the tools, as well as a comments area for asking questions.

Getting and Using the Tools

I can’t get the tools to work on my rented or library ebooks.

Support for removing DRM from rented or library ebooks is not provided.

The Data File Host download link does not work or just gives me .php files, not .zip files, or says “you can’t download files directly”.

If you are using some kind of ‘fast download’ plugin with your browser, turn it off.

If you have cookies disabled, enable them.

Make sure that you are clicking on the real download button which is grey and immediately under the file description. An apparent download link “DOWNLOAD NOW” on the right hand side of the page is an advert over which I have no control. If you are downloading on Windows, don’t forget to uncheck the checkbox for the download manager.

At busy times Data File Host website might be slow. Be patient.

I am trying to install the calibre plugin, but calibre keeps on saying that the plugin is invalid.

You might be trying to add the tools archive. The tools archive is not a calibre plugin. It is a collection of various DRM removal tools which includes calibre plugin. You must unzip the archive, and install the calibre plugin from a folder called “DeDRM_calibre_plugin” in the unzipped archive.

I’ve fully unzipped the tools archive, but I can’t find the calibre plugin when I try to add them to calibre. I use Windows.

You should select the zip file that is in the “DeDRM_calibre_plugin” folder, not any files inside the plugin’s zip archive. Make sure you are selecting from the tools folder that you created when you right clicked and selected “Extract All…” on the tools zip archive and not selecting a file inside the still-zipped tools archive.

(The problem is that Windows will allow apps to browse inside zip archives without needing to unzip them first. If there are zip archives inside the main zip archives, Windows will show them as unzipped as well. So what happens is people will unzip the tools_vX.X.X.zip to create the tools_vX.X.X folder but when using calibre they will actually navigate to the still zipped file by mistake and cannot tell they have done so because they do not have file extensions showing. So to the unwary Windows user, it appears that the zip archive was unzipped and that everything inside it was unzipped as well so there is no way to install the plugins.

This is why we strongly recommend renaming the tools_vX.X.X.zip archive (after extracting its contents) to tools_zip_vX.X.X.zip. If people do that, they are less likely to navigate to the wrong location from inside calibre.)

I have installed the calibre plugins, but now I get an error “Plugin not configured! Decryption unsuccessful. This may be the first time you’ve used this plugin (or the first time since upgrading this plugin). You’ll need to open the customization dialog (Preferences->Plugins->File type plugins).”

You have an old version of the plugin for Barnes & Noble ePubs installed. Make sure you remove all of the old versions of the plugins after installing the new all-in-one DeDRM plugin.

How do I remove the old plugins?

  • Open calibre
  • Select the menu “Preferences/Change calibre behavior”
  • Select “Plugins” (on the bottom row, green jigsaw-puzzle button)
  • Check the check box “Show only user installed plugins”
  • Click on the “>” arrow in the line: “> File type plugins”
  • For each old plugin in turn,
    • Click on the plugin to select it
    • Click on the remove plugin button
    • Click on OK button in the confirmation dialog
    • If there are more to delete, click on the “>” arrow in the line: “> File type plugins” to re-open the list.
  • Click “Apply” (top left of dialog)
  • Click “Close” (bottom right of dialog)

I have installed the calibre plugin, but my books still have DRM. When I try to view or convert my books, calibre says they has DRM.

The DRM only gets removed when the ebook is imported into calibre. If the book is already in calibre, you must delete the book from calibre and import the ebook again. It is not enough to just import the book again: calibre will discard the newly imported DRM-free version as a duplicate, leaving only the original DRMed version.

I have installed the calibre plugin or I am trying to use one of the other tools, but I don’t know where my ebooks are stored.

Your ebooks are stored on your computer or on your ebook reader. You need to find them to be able to remove the DRM. If they are on your reader, you should be able to locate them easily. On your computer it’s not so obvious. Here are the default locations.

Macintosh

Navigating from your home folder,

Kindle ebooks are in either Library/Application Support/Kindle/My Kindle Content or Documents/My Kindle Content or Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/My Kindle Content, depending on your version of Kindle for Mac.

Adobe Digital Editions ebooks are in Documents/Digital Editions

Windows

Navigating from your My Documents folder

Kindle ebooks are in My Kindle Content

Adobe Digital Editions ebooks are in My Digital Editions

Mobipocket Reader ebooks are in My ebooks

I have installed the calibre plugin, and the book is not already in calibre, but the DRM does not get removed.

You must use the exact file that is used by your ebook reading software or hardware. See the previous question on where to find your ebook files. Do not use an old copy you have that you can no longer read.

If you cannot read the ebook on your current device or installed software, the tools will certainly not be able to remove the DRM. Download a fresh copy that does work with your current device or installed software.

I have installed the calibre plugins and the book is not already in calibre, but the DRM does not get removed. It is a Barnes & Noble book.

The most likely cause is the wrong name and/or number in the configuration field of the tool.

  • Sign in to your Barnes & Noble account
  • Click on My Account
  • In the block Account Settings note the following:
    • your name, as given directly under the line PERSONAL INFORMATION
    • your name, as given in the default shipping address
    • your name, as given as the name on the default credit card
    • the credit card number listed under the line PAYMENT SETTINGS, Default payment. Of course only a part is shown.

Now for the tools. Use the following in the configuration fields:

Name: use the name you copied above. Do not use your login username, do not use your email address. In what seems to be rare circumstances the name used by Barnes and Noble is the name listed for the default shipping address or the active credit card instead of the account name. If you are sure you did everything right and the tools still do not decrypt, make more keys using the other forms of your name.

Credit card: use the full number of the above mentioned card. If you have used multiple credit cards, use the number that was marked active at the time the book was downloaded. If you are not completely sure, redownload the book as it will be re-encrypted at that moment, and use the current default card number.

I have installed the calibre plugin, and the book is not already in calibre, but the DRM does not get removed. It is a Kindle book.

If you are on Windows 8 and using the Windows 8 AppStore Kindle app, you must download and install the Kindle for PC application directly from the Amazon website. The tools do not work with the Windows 8 AppStore Kindle app.

If this book is from an eInk Kindle, you must enter the serial number into the configuration dialog. The serial number is sixteen characters long, starts with a ‘B’ or a ‘9’ and is case-sensitive.

If this book is from Kindle for Mac or Kindle for PC, you must have the Kindle Software installed on the same computer as your copy of calibre.

If the book is from Kindle for PC or Kindle for Mac and you think you are doing everything right, and you are getting this message, it is possible that the files containing the encryption key aren’t quite in the format the tools expect. To try to fix this:

  1. Deregister Kindle for PC(Mac) from your Amazon account.
  2. Uninstall Kindle for PC(Mac)
  3. Delete the Kindle for PC(Mac) preferences
    • PC: Delete the directory [home folder]\AppData\Local\Amazon (it might be hidden) and [home folder]\My Documents\My Kindle Content
    • Mac: Delete the directory [home folder]/Library/Application Support/Kindle/
      and/or [home folder]/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/ (one or both may be present and should be deleted)
  4. Reinstall Kindle for PC(Mac)
  5. re-register Kindle for PC(Mac) with your Amazon account
  6. Download the ebook again. Do not use the files you have downloaded previously.

Some of my books had their DRM removed, but some still say that they have DRM and will not convert.

There are several possible reasons why only some books get their DRM removed.

  • You still don’t have the DRM removal tools working correctly, but some of your books didn’t have DRM in the first place.
  • You added your books to calibre in large batches. For some unknown reason, sometimes calibre stops using the plugin after a while on a single import. Delete the books that still have DRM and import them into calibre in batches of twenty.
  • Kindle only: It is a Topaz format book and contains some coding that the tools do not understand. You will need to get a log of the deDRM attempt, and then send the book and the PID (shown in the log) for the book to Apprentice Alf, so that the tools can be updated.

If you are still having problems with particular books, you will need to create a log of the DRM removal attempt for one of the problem books, and post that in a comment.

I didn’t use to have any problems with the tools and my Kindle ebooks, but now I’m getting .azw3 files instead of .mobi files.

Amazon have introduced a new format, KF8, which the tools identify by giving the extension .azw3. Recent versions of calibre know about .azw3 files and can convert them to Mobipocket or ePub. To view .azw3 files with calibre it is necessary to tell calibre to use its internal viewer for .azw3 files in calibre Preferences/Change calibre behaviour/Behaviour/.

Do the tools work on books from Kobo?

Kobo uses Adobe Digital Editions encryption, but it also uses its own application and encryption system, so you might not have already installed Adobe Digital Editions. You must do so in order to get your Kobo books as DRM-free ePubs.

Once you have installed ADE, you must authorise it with an Adobe ID. Failing to do that will link your DRMed ebooks to this particular installation of ADE, instead of to an ID that can be used with any new installation. Do this before you try getting any DRMed ebooks loaded into Adobe Digital Editions. (Help menu/Authorize Computer… Choose Adobe ID for “ebook Vendor” and enter your Adobe ID and password. Adobe ID is usually your email address.)

OK, so now you have installed ADE and authorised it with an Adobe ID.

Your Kobo books are all available in your Kobo library at http://www.kobobooks.com/library/reading.html

Some are DRM free and have a blue button “DOWNLOAD EPUB”.

Some are Adobe DRM eubs and have a blue button “ADOBE DRM EPUB”

Clicking on the “ADOBE DRM EPUB” button downloads a ‘.acsm’ file. This is a link file used by Adobe Digital Editions to download the actual ePub, and it is at this point that the DRM gets applied for your installation of Adobe Digital Editions. Make sure your ADE is authorised to your Adobe ID before doing this next bit.

Right-click on the ‘.acsm’ file and select Adobe Digital Edition to open it. It will open Adobe Digital Editions, and your ePub will download. See Where are my ebooks? to find the location of the downloaded ADE ePub. You can now use whichever of the ADE DRM removal tools is most convenient for you on this file to obtain your DRM-free ePub.

Do the tools work on books from Sony?

Sony ebooks also rely on encryption from Adobe, and the way to remove the DRM is very similar to the Kobo situation. You should install and register Adobe Digital Editions in the same way, and you will be able to download ‘.acsm’ files in the same way, as described in the answer about Kobo ebooks above.

I cannot solve my problem the DeDRM plugin, and now I need to ‘post a log’. How do I do that?

On Macintosh only you must first run calibre, open Preferences, open Miscellaneous, and click on the “Install command line tools” button. (On Windows and Linux the command line tools are installed automatically.)

On Windows, open a terminal/command window. (Start/Run… and then type ‘cmd’ (without the ‘’) as the program to run).

On Macintosh, open the Terminal application (in your Utilities folder).

On Linux open a command window. Hopefully all Linux users know how to do this on their system, as it varies.

You should now have a text-based command-line window open. Make sure that calibre isn’t running.

Now type in ‘calibre-debug -g’ (without the ‘’) and press return key. Calibre will launch in debug mode, and various diagnostic information will be written to the terminal window.

Import the ebook into calibre. More information will be written to the terminal window.

Now copy the output from the terminal window.

On Windows, you must use the window menu (little icon at left of window bar) to select all the text and then to copy it.

On Macintosh and Linux, just use the normal text select and copy commands.

Paste the information into a comment describing your problem.

I cannot solve my problem with one of the DeDRM applications, and now I need to ‘post a log’. How do I do that?

On Macintosh, the DeDRM application creates a log file on your desktop every time it is run. Copy the contents of that (it is a simple text file) and paste it into your comment.

On Windows, the DeDRM application creates a log file in your home directory every time it is run. Copy the contents of that (it is a simple text file) and paste it into your comment.

Why don’t the tools work with Kindle Fire ebooks?

The Kindle Fire is Android based unlike any of the earlier standalone Kindles and the current tools will not work with ebooks from Kindle Fire devices.

Your only workaround is to install Kindle for PC or Kindle for Mac and use books from there instead.

Why doesn’t the UDID of my iOS device work for my Kindle for iOS ebooks?

Unfortunately, for most people, the tools no longer work with ebooks from the Kindle for iOS application. The is because Apple no longer allows applications to use the UDID, and so Amazon can’t get access to it.

Some long-term users of the iOS application may find it still works, because Amazon still have a note of their UDID from before the ban came into operation. New installations definitely won’t work.

Your only workaround is to install Kindle for PC or Kindle for Mac and use books from there instead.

Do the tools work on books from the Apple iBooks Store?

Books from Apple’s iBooks Store use a variant of Apple’s Fairplay DRM and therefore the tools in the main tools archive will not work with these ebooks. The only tools known to work for these books is Requiem version 3.3.6 by Brahms. See this post for more details.

I’ve got the tools archive and I’ve read all the FAQs but I still can’t install the tools and/or the DRM removal doesn’t work

  • Read the ReadMe_First.txt file in the top level of the tools archive
  • Read the ReadMe file in the folder of the tools you want to use.
  • If you still can’t remove the DRM, ask in the comments on the most recent post in this blog, reporting the error as precisely as you can, what platform you use, what tool you have tried, what errors you get, and what versions you are using. If the problem happens when running one of the tools, post a log (see previous questions on how to do this).

General Questions

Once the DRM has been removed, is there any trace of my personal identity left in the ebook?

The tools only remove the DRM. No attempt is made to remove any personally identifying information.

What are Kindle Topaz ebooks? HTMLZ? SVG?

Most Amazon Kindle ebooks are Mobipocket format ebooks, or the new KF8 format. However, some are in a format known as Topaz. The Topaz format is only used by Amazon. A Topaz ebook is a collections of glyphs and their positions on each page tagged with some additional information from that page including OCRed text (Optical Character Recognition generated Text) to allow searching, and some additional layout information. Each page of a Topaz ebook is effectively a description of an image of that page. To convert a Topaz ebook to another format is not easy as there is not a one-to-one mapping between glyphs and characters/fonts. To account for this, two different formats are generated by the DRM removal software. The first is an html description built from the OCRtext and images stored in the Topaz file (HTMLZ). This format is easily reflowed but may suffer from typical OCRtext errors including typos, garbled text, missing italics, missing bolds, etc. The second format uses the glyph and position information to create an accurate scalable vector graphics (SVG) image of each page of the book that can be viewed in web browsers that support svg images (Safari, Firefox 4 or later, etc). Additional conversion software can be used to convert these SVG images to an image only PDF file. The DeDRM and Kindlebooks tools from this site provide both versions of the Topaz ebook so that the user can choose which one to use. The K4MobiDeDRM plugin only produces the html version of the ebook. The html version can be manually cleaned up and spell checked and then converted using Sigil/calibre to epubs, mobi ebooks, and etc.

I’ve bought Mobipocket ebooks from an on-line retailer without having to enter the PID of my copy of Mobipocket Reader, and I can read them in Mobipocket Reader. But when I try to convert them to another format, calibre says that they have DRM, but the tools say they don’t contain a PIDs, and I should open them in Mobipocket Reader. What’s going wrong?

The books are downloaded without a PID, but still encrypted. Opening them in Mobipocket Reader causes Mobipocket Reader to create a copy of the ebook that contains with the Mobipocket Reader’s PID. This copy is stored in the My ebooks folder in your My Documents folder. It’s this copy that you must use with the DRM removal tools.

Are the tools open source? How can I be sure they are safe and not a trojan horse?

All the DRM removal tools hosted here are almost entirely scripts of one kind or another: Python, Applescript or Windows Batch files. So they are inherently open source, and open to inspection by everyone who downloads them. The source for any compiled pieces are provided right inside the tools themselves.

I have an old encrypted PDF file that won’t open in Adobe Digital Editions, how can I remove the DRM?

If your PDF ebooks cannot be read in Adobe Digital Editions, the tools here cannot help. They are probably encrypted using the Content Server 3 (or earlier) methods which Adobe no longer support, not even to allow conversion to Content Server 4 (AKA Adobe Digital Editions).

See http://www.adobe.com/products/contentserver/migrate.html for more details.

Adobe only allowed a nine month window (March-December 2009) for migration to Adobe Digital Editions after the Content Server 3 servers were discontinued.

You might be able to find tools to remove the DRM from other sites, but there are several different old encryption schemes for PDF files, and I’m unfamiliar with them. Tetrachroma’s blog http://tetrachroma.wordpress.com/ might be a good starting point for Windows users, as he’s done a lot of work on some PDF DRM scheme called ‘File Open’.

What ebooks do these tools work on?

The tools linked from this blog remove DRM from PDF, EPUB, eReader, Mobipocket, KF8, Print Replica and Topaz format ebooks using Adobe Adept, Barnes & Noble, Amazon and eReader DRM schemes.

Note these tools do NOT ‘crack’ the DRM. They simply allow the book’s owner (and only the book’s owner) to use the encryption key information already stored someplace on their computer or device to decrypt the ebook in the same manner the official ebook reading software uses.

Microsoft LIT format ebooks using Microsoft’s DRM scheme can have the DRM removed using ConvertLit from http://convertlit.com/.

Apple’s Fairplay DRM scheme, used on most ebooks bought at Apple’s iBookstore can have the DRM removed using Requiem. See my post Apple and ebooks: iBookstore DRM and how to remove it for more details and links.

Who wrote these scripts?

The authors tend to identify themselves only by pseudonyms:

  • The Adobe Adept and Barnes & Noble scripts were created by i♥cabbages
  • The Amazon Mobipocket and eReader scripts were created by The Dark Reverser
  • The Amazon K4PC DRM/format was further decoded by Bart Simpson aka Skindle
  • The Amazon K4 Mobi tool was created by by some_updates, DiapDealer and mdlnx
  • The Amazon Topaz DRM removal script was created by CMBDTC
  • The Amazon Topaz format conversion was created by some_updates, clarknova, and Bart Simpson
  • The DeDRM all-in-one AppleScript application was created by Apprentice Alf
  • The DeDRM all-in-one Python application was created by some_updates
  • The DeDRM all-in-one calibre plugins was created by Apprentice Alf, based on plugins created by DiapDealer
  • The Scuolabooks tool was created by Hex
  • The Microsoft code was created by drs
  • The Apple DRM removal tool was created by Brahms

Since the original versions of the scripts and programs were released, various people have helped to maintain and improve them, mainly some_updates, DiapDealer and me (Apprentice Alf).

DeDRM Application for Windows XP and above

Last updated on 22nd March, 2013

System Requirements: Windows XP and above.

The simplest way to remove the DRM from your ebooks is to use calibre and the DeDRM calibre plugin, as described in my post DeDRM plugin for calibre: the simplest option for removing DRM from most ebooks. If you don’t want to use calibre, for whatever reason, here is an alternative.

The DeDRM application identifies an ebook’s format, and then removes the DRM from that ebook by running the appropriate DRM removal python script.

Installing the DeDRM Application

  1. Install Python

    • Download ActivePython 2.7.2 (or later 2.7.x version) for Windows (x86) from http://www.activestate.com/activepython/downloads.
      (Do not download the ActivePython for Windows (64-bit, x64) version, even if you are running 64-bit Windows, nor any version 3.0 later. Do not use the version from python.org instead, as it is missing some needed libraries)
    • Double-click the installer “ActivePython-2.7.2.5-win32-x86.msi” to run it. Accept the default options.
  2. Install PyCrypto

    • Download “PyCrypto 2.1 for 32bit Windows and Python 2.7″ from http://www.voidspace.org.uk/python/modules.shtml#pycrypto.
    • Unzip it (by right-clicking and selecting “Extract All…”). This will produce a file “pycrypto-2.1.0.win32-py2.7.exe”.
    • Double-click the installer “pycrypto-2.1.0.win32-py2.7.exe” to run it. Accept the default options.
  3. Install the DeDRM application

    • Download the latest tools zip archive (link in this post).
    • Unzip the tools archive (by right-clicking and selecting “Extract All…”).
    • Open the folder “DeDRM_Application_Windows” that’s in the unzipped tools folder.
    • Read the “DeDRM_App_ReadMe.txt” file that’s in the “DeDRM_Application_Windows” folder!
    • Drag the “DeDRM_App” folder from the “DeDRM_Application_Windows” to your “My Documents” folder or wherever is convenient for you.
    • Open the “DeDRM_App” folder you’ve just moved, and make a short-cut of the “DeDRM_Drop_Target.bat” file (right-click/Create Shortcut). Drag the shortcut file onto your Desktop.

Using the DeDRM Application

To remove DRM from a Kindle for PC or an Adobe Digital Edition ebook, just drag & drop the ebook file onto the “DeDRM_Drop_Target.bat” shortcut when the application is not running.

For other ebooks, you will need to enter some extra information. Run the DeDRM application by double-clicking “DeDRM_Drop_Target.bat” shortcut to access the configuration dialogs.

To remove DRM from several ebooks or folders of ebooks at once, just drag & drop the files and folders onto the “DeDRM_Drop_Target.bat” shortcut when it is not running.

Notes

eReader ebooks: The output from an encrypted eReader file is a .pmlz zip file of the unencypted PML and images. Calibre can import the PMLZ file and convert to other formats.

Amazon Topaz ebooks: Some Amazon Kindle ebooks are in a format known as Topaz. This AppleScript will remove the DRM from the Topaz files, but to allow the file to be converted into other formats, the Topaz format must be converted during the de-drming process. The end result is that you end up with two files from one Topaz format ebook. One is the text (& pictures) of the book in HTML format created from the OCR text that’s stored in the Topaz file. Another is a set of SVG page images which very closely resemble the pages of the book the Topaz file was created from. For most purposes, you’ll only need the HTML file, but if the OCR is poor, you might want to unzip the folder of SVG images to check the pages or convert them to an image based PDF file.

Anti-Piracy Notice

Please only use this application for gaining full access to your own ebooks for archiving/converson/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.

About the Windows DeDRM Application

This application is written in Python, and can be opened and edited using any good text editor.

— Alf.