<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ ebook - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ Browse thousands of programming tutorials written by experts. Learn Web Development, Data Science, DevOps, Security, and get developer career advice. ]]>
        </description>
        <link>https://www.freecodecamp.org/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ ebook - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Sat, 23 May 2026 19:41:44 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/news/tag/ebook/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ Mobi to PDF – How to Convert a Mobi File Extension In Browser or From the Command Line ]]>
                </title>
                <description>
                    <![CDATA[ If you've bought a book online recently, or downloaded a free public domain book at a site like Project Guttenberg, there's a good chance that it's a .mobi file. But you probably weren't able to open it because you didn't have the right software inst... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/mobi-to-pdf-how-to-convert-to-and-from-a-mobi-file/</link>
                <guid isPermaLink="false">66ac88239e10a480c13037d6</guid>
                
                    <category>
                        <![CDATA[ ebook ]]>
                    </category>
                
                    <category>
                        <![CDATA[ pdf ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Kristofer Koishigawa ]]>
                </dc:creator>
                <pubDate>Thu, 01 Oct 2020 02:05:00 +0000</pubDate>
                <media:content url="https://cdn-media-2.freecodecamp.org/w1280/5f9c9872740569d1a4ca1a19.jpg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>If you've bought a book online recently, or downloaded a free public domain book at a site like <a target="_blank" href="https://www.gutenberg.org/">Project Guttenberg</a>, there's a good chance that it's a <code>.mobi</code> file. But you probably weren't able to open it because you didn't have the right software installed.</p>
<p>In this article, you'll learn what <code>.mobi</code> files are and how to convert to and from the <code>.mobi</code> format for easier reading between devices.</p>
<h2 id="heading-whats-a-mobi-file">What's a <code>.mobi</code> file?</h2>
<p><code>.mobi</code> files are an eBook file format created by the company Mobipocket for their Mobipocket Reader software.</p>
<p>Amazon bought Mobipocket in 2005, and based the Kindle eBook reader's file formats (<code>.azw</code> and <code>.azw3</code>) on the <code>.mobi</code> format. Because of this, it's possible to read most <code>.mobi</code> files on Kindle devices.</p>
<h2 id="heading-how-to-open-a-mobi-file">How to open a <code>.mobi</code> file</h2>
<p>There are a number of ways to open <code>.mobi</code> eBooks. Some common suggestions include <a target="_blank" href="https://calibre-ebook.com/">Calibre</a>, <a target="_blank" href="https://fbreader.org/">FBReader</a>, and the official <a target="_blank" href="https://www.amazon.com/b/ref=ruby_redirect?ie=UTF8&amp;node=16571048011">Kindle app</a>.</p>
<p>Of these, both Calibre and FBReader are available for Windows, macOS, Linux. On top of this, FBReader is also available for Android and iOS.</p>
<h2 id="heading-how-to-convert-a-mobi-file">How to convert a <code>.mobi</code> file</h2>
<p>Converting <code>.mobi</code> eBooks into other formats is really straightforward, both online and locally.</p>
<h3 id="heading-how-to-convert-to-or-from-a-mobi-file-online">How to Convert to or from a <code>.mobi</code> file online</h3>
<p>There are a number of sites like <a target="_blank" href="https://www.docspal.com/">docspal</a> that let you upload a <code>.mobi</code> file, and select a format to convert it to like PDF. Once it's finished with the conversion, you can download the new file.</p>
<p>To convert a <code>.mobi</code> file into a PDF, go to the site and upload the file:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/09/image-43.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Next, select the file type you want to convert the <code>.mobi</code> file to from the dropdown on the right:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/09/image-44.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Finally, click the "Convert" button and download the converted file.</p>
<p>This also works if you want to convert a PDF file to <code>.mobi</code> – upload the PDF file, select <code>.mobi</code> from the dropdown on the right, and click the "Convert" button. </p>
<h3 id="heading-how-to-convert-to-or-from-a-mobi-file-locally-on-your-computer">How to Convert to or from a <code>.mobi</code> file locally on your computer</h3>
<p>While converting <code>.mobi</code> files to and from other formats on your local machine is a bit more involved, Calibre makes it easy.</p>
<p>To convert a <code>.mobi</code> file into a PDF, first, <a target="_blank" href="https://calibre-ebook.com/download">download</a> and install Calibre for your operating system.</p>
<p>Then, open Calibre, click "Add books" in the top right corner, and select your eBook:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/09/image-45.png" alt="Image" width="600" height="400" loading="lazy">
<em>Selecting a <code>.mobi</code> eBook in Linux Mint</em></p>
<p>Next, select the eBook in your Calibre library and click the "Convert books" button in the menu at the top.</p>
<p>In the "Convert books" menu, select PDF from the "Output format" dropdown in the top right corner:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/09/image-47.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Finally, click the "OK" button in the lower right corner.</p>
<p>Once the conversion is finished, your new PDF file will be in the <code>/Calibre Library/[Book author]/</code> directory.</p>
<p>To convert a PDF to a <code>.mobi</code> file in Calibre, first add the PDF file, click "Convert books", select <code>.mobi</code> from the "Output format" dropdown, then click the "OK" button.</p>
<h3 id="heading-how-to-convert-to-or-from-a-mobi-file-from-the-command-line">How to Convert to or from a <code>.mobi</code> file from the command line</h3>
<p>If you want a faster way to convert files to and from the <code>.mobi</code> format, Calibre includes a neat little command line tool, <code>ebook-convert</code>.</p>
<p><strong>Note:</strong> These instructions were written for Linux, but should also apply to macOS and possibly Windows with <a target="_blank" href="https://docs.microsoft.com/en-us/windows/wsl/install-win10">WSL (Windows Subsystem for Linux)</a> configured.</p>
<p>To convert a <code>.mobi</code> file to PDF, open up a terminal and <code>cd</code> into the directory with the eBook file:</p>
<pre><code class="lang-bash"><span class="hljs-built_in">cd</span> ~/Documents/ebooks
</code></pre>
<p>Then, run the <code>ebook-convert</code> command with the following options:</p>
<pre><code class="lang-bash">ebook-convert &lt;from_file&gt;.&lt;from_format&gt; &lt;to_file&gt;.&lt;to_format&gt;
</code></pre>
<p>For example:</p>
<pre><code class="lang-bash">ebook-convert pride-and-prejudice.mobi pride-and-prejudice.pdf
</code></pre>
<p>Going from PDF to <code>.mobi</code> is just as easy:</p>
<pre><code class="lang-bash">ebook-convert pride-and-prejudice.pdf pride-and-prejudice.mobi
</code></pre>
<h2 id="heading-the-end">The end</h2>
<p>While <code>.mobi</code> files are an older format, they're still well supported and can be converted to other file formats easily. Whether you convert the files online or locally is up to you.</p>
<p>However you decide to convert your eBook files, stay safe and read a good book.</p>
 ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
