---
title: "MOBI"
language: "en"
type: "Format"
summary: "Registered MIME type: application/x-mobipocket-ebook, application/vnd.amazon.ebook"
keywords: 
- MOBI
- e-book
- e-reader
- Mobipocket
- mobipocket book format
- prc extension
canonical_url: "https://reference.wolfram.com/language/ref/format/MOBI.html"
source: "Wolfram Language Documentation"
related_guides: 
  - 
    title: "Document Formats"
    link: "https://reference.wolfram.com/language/guide/DocumentFormats.en.md"
  - 
    title: "Importing & Exporting"
    link: "https://reference.wolfram.com/language/guide/ImportingAndExporting.en.md"
  - 
    title: "Importing & Exporting in Notebooks"
    link: "https://reference.wolfram.com/language/guide/ImportingAndExportingInNotebooks.en.md"
  - 
    title: "Listing of All Formats"
    link: "https://reference.wolfram.com/language/guide/ListingOfAllFormats.en.md"
  - 
    title: "Processing Textual Data"
    link: "https://reference.wolfram.com/language/guide/ProcessingTextualData.en.md"
related_tutorials: 
  - 
    title: "Importing & Exporting"
    link: "https://reference.wolfram.com/language/tutorial/ImportingAndExporting.en.md"
---
# MOBI (.mobi)

``Import`` is fully compatible with the MOBI standard.

## Background & Context

* Registered MIME type: application/x-mobipocket-ebook, application/vnd.amazon.ebook
* Mobipocket ebook format.
* Introduced by Mobipocket SA in 2000.
* Stores text and graphics.

## Import & Export

``Import["file.mobi"]`` imports a MOBI file as a string.

``Import["file.mobi", elements]`` imports the specified elements.

The import format can be specified with ``Import["file", "MOBI"]`` or ``Import["file", {"MOBI", elem, …}]``.

---

See the following reference pages for full general information:

|                 |                            |
| --------------- | -------------------------- |
| Import          | import from a file         |
| CloudImport     | import from a cloud object |
| ImportString    | import from a string       |
| ImportByteArray | import from a byte array   |

## Import Elements

General ``Import`` elements:

|             |                                                     |
| ----------- | --------------------------------------------------- |
| "Elements"  | list of elements and options available in this file |
| "Summary"   | summary of the file                                 |
| "Rules"     | list of rules for all available elements            |

---

Data representation elements:

|              |                                                           |
| ------------ | --------------------------------------------------------- |
| "Plaintext"  | a string giving the textual content of the whole document |
| "CoverImage" | a sequence of formatted text for the whole document       |

Embedded media elements:

"EmbeddedImages"	a list of embedded images

Metadata elements:

|                      |                                            |
| -------------------- | ------------------------------------------ |
| "ASIN"               | the Amazon Standard Identification Number  |
| "Author"             | author of the document                     |
| "Copyright"          | the copyright notice                       |
| "Description"        | document description                       |
| "ISBN"               | the International Standard Book Number     |
| "Language"           | document language                          |
| "PublishDate"        | publication date                           |
| "Publisher"          | document publisher                         |
| "RawMetaInformation" | metadata given as strings and date objects |
| "Subject"            | the subject of the document                |
| "Title"              | document title                             |

---

## Examples (19)

### Basic Examples (2)

Import a MOBI file:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi"]//IconizedObject[«Pane»]

Out[1]=
"JABBERWOCKY
By Lewis Carroll

’Twas brillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.
“Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubj ... rillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.

Facts about Lewis Carroll

Country 

England

Birth year 

1832

Death year 

1898

Portrait 

Table of Contents
Jabberwocky"
```

---

Import summary of a MOBI file:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "Summary"]

Out[1]= DynamicModule[«6»]
```

### Scope (2)

#### Import (2)

Import a plain test from a MOBI file:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi"]//IconizedObject[«Pane»]

Out[1]=
"JABBERWOCKY
By Lewis Carroll

’Twas brillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.
“Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubj ... rillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.

Facts about Lewis Carroll

Country 

England

Birth year 

1832

Death year 

1898

Portrait 

Table of Contents
Jabberwocky"
```

---

Import some metadata:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", {{"Title", "Language", "PublishDate"}}]

Out[1]= {"Jabberwocky", "en", DateObject[{2023, 10, 4, 3, 22, 33.9586}, "Instant", "Gregorian", None]}
```

### Import Elements (15)

#### Available Elements (1)

List of available elements:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "Elements"]

Out[1]= {"ASIN", "Author", "Copyright", "CoverImage", "Description", "EmbeddedImages", "ISBN", "Language", "Plaintext", "PublishDate", "Publisher", "RawMetaInformation", "Subject", "Summary", "Title"}
```

#### Data Representation (2)

##### "Plaintext" (1)

---

Import the text from the whole document:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "Plaintext"]//IconizedObject[«Pane»]

Out[1]=
"JABBERWOCKY
By Lewis Carroll

’Twas brillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.
“Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubj ... rillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.

Facts about Lewis Carroll

Country 

England

Birth year 

1832

Death year 

1898

Portrait 

Table of Contents
Jabberwocky"
```

##### "CoverImage" (1)

---

Import the cover image:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "CoverImage"]

Out[1]= Missing["NotAvailable"]
```

#### Embedded Media Elements (1)

##### "EmbeddedImage" (1)

---

Import embedded images:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "EmbeddedImages"]

Out[1]= {[image], [image]}
```

#### Metadata (11)

##### "ASIN" (1)

---

Import the ASIN number:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "ASIN"]

Out[1]= "d2430c5e-eb7b-4bfe-bc8f-48cee444fd78"
```

##### "Author" (1)

---

Import the author of the document:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "Author"]

Out[1]= "Lewis Carroll"
```

##### "Copyright" (1)

---

Import the copyright notice:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "Copyright"]

Out[1]= Missing["NotAvailable"]
```

##### "Description" (1)

---

Import the description of the document:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "Description"]

Out[1]= "A famous nonsense poem written by Lewis Carroll."
```

##### "ISBN" (1)

---

Import the ISBN number:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "ISBN"]

Out[1]= Missing["NotAvailable"]
```

##### "Language" (1)

---

Import the language of the document:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "Language"]

Out[1]= "en"
```

##### "PublishDate" (1)

---

Import the publication date:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "PublishDate"]

Out[1]= DateObject[{2023, 10, 29, 18, 0, 0.}, "Instant", "Gregorian", None]
```

##### "Publisher" (1)

---

Import the publisher of the document:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "Publisher"]

Out[1]= "Calibre"
```

##### "RawMetaInformation" (1)

---

Import the metadata from the file :

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "RawMetaInformation"]

Out[1]= <|"ASIN" -> "c3299682-92a6-4199-8e5f-37b6caabbeea", "Author" -> "Lewis Carroll", "Copyright" -> Missing["NotAvailable"], "Description" -> "A famous nonsense poem written by Lewis Carroll.", "ISBN" -> Missing["NotAvailable"], "Language" -> "en", "PublishDate" -> DateObject[{2023, 10, 29, 18, 0, 0.}, "Instant", "Gregorian", None], "Publisher" -> "Calibre", "Subject" -> "Humour", "Title" -> "Jabberwocky"|>
```

##### "Subject" (1)

---

Import the subject of the document:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "Subject"]

Out[1]= "Humour"
```

##### "Title" (1)

---

Import the title of the document:

```wl
In[1]:= Import["ExampleData/Jabberwocky.mobi", "Title"]

Out[1]= "Jabberwocky"
```

## See Also

* [`Import`](https://reference.wolfram.com/language/ref/Import.en.md)
* [`CloudImport`](https://reference.wolfram.com/language/ref/CloudImport.en.md)
* [`PDF`](https://reference.wolfram.com/language/ref/format/PDF.en.md)
* [`DOCX`](https://reference.wolfram.com/language/ref/format/DOCX.en.md)
* [`HTML`](https://reference.wolfram.com/language/ref/format/HTML.en.md)
* [`EPS`](https://reference.wolfram.com/language/ref/format/EPS.en.md)
* [`TeX`](https://reference.wolfram.com/language/ref/format/TeX.en.md)
* [`LaTeX`](https://reference.wolfram.com/language/ref/format/LaTeX.en.md)
* [`NB`](https://reference.wolfram.com/language/ref/format/NB.en.md)
* [`CDF`](https://reference.wolfram.com/language/ref/format/CDF.en.md)

## Tech Notes

* [Importing & Exporting](https://reference.wolfram.com/language/tutorial/ImportingAndExporting.en.md)

## Related Guides

* [Document Formats](https://reference.wolfram.com/language/guide/DocumentFormats.en.md)
* [Importing & Exporting](https://reference.wolfram.com/language/guide/ImportingAndExporting.en.md)
* [Importing & Exporting in Notebooks](https://reference.wolfram.com/language/guide/ImportingAndExportingInNotebooks.en.md)
* [Listing of All Formats](https://reference.wolfram.com/language/guide/ListingOfAllFormats.en.md)
* [Processing Textual Data](https://reference.wolfram.com/language/guide/ProcessingTextualData.en.md)

## History

* [Introduced in 2024 (14.0)](https://reference.wolfram.com/language/guide/SummaryOfNewFeaturesIn140.en.md)