Convert MOBI to TXT

The MOBI file format is one of the most widely used ebook file formats. The format is an enhancement to the old OEB (Open Ebook Format) format and was used as the proprietary format for Mobipocket Reader. Like EPUB, it is supported by almost all modern e-readers specifically by mobile devices with low bandwidth. The format can be converted to several other formats such as PDF, EPUB, and several other formats using publicly available software applications such as the Kindle app.

Steps to convert MOBI to TXT in C#

GroupDocs.Conversion allows developers to convert the MOBI file to TXT format in an easy and intuitive way just using a few lines of code as described below:

  • Create an instance of Converter class and pass source MOBI file path as a constructor parameter. You may specify absolute or relative file path as per your requirements.
  • Create an instance of WordProcessingConvertOptions class and set Format property to GroupDocs.Conversion.FileTypes.WordProcessingFileType.Txt.
  • Call Converter class Convert method and pass the filename for the converted TXT file and the WordProcessingConvertOptions object from the previous step as parameters.
// Load the source MOBI file
using (var converter = new GroupDocs.Conversion.Converter("sample.mobi"))
{
    // Set the convert options for TXT format
   var options = new WordProcessingConvertOptions { Format = GroupDocs.Conversion.FileTypes.WordProcessingFileType.Txt };
    // Convert to TXT format
    converter.Convert("converted.txt", options);
}

Code Examples

Please find more use-cases and complete C# sources of our backend and frontend examples and try them for free!

MOBI to TXT Live Demo

GroupDocs.Conversion for .NET provides an online MOBI to TXT converter, which allows you to try it for free and check conversion quality and accuracy.

“Convert MOBI to TXT”