I downloaded a large batch of emails using Google Takeout. It generated a single .mbox file (about 2 MB).

I would like to read these emails in a single file on my Kobo eReader, which accepts file formats of PDF, ePub, mobi, etc.

How do I convert this .mbox file into a single file I can read on the eReader -- preferably in ePub or PDF format? I would prefer to do this through a command line tool and not upload the emails to any server.

This is a similar question, but the answers only cover .eml files.

1 Answer 1


I don't have a completely CLI solution, but …

  1. Double-click on the .mbox file (or open file)
  2. Mail.app will open with all the messages in a mailbox.
  3. Select all, and File→Export as PDF
  4. Each message will be its own PDF file.
  5. Combine them into a single PDF as shown in https://support.apple.com/guide/mac-help/combine-files-into-a-pdf-mchl21ac2368/mac

There are also numerous online services that will concatenate PDFs.

And I have used a "PDF Toolkit" on command line that concatenates (among other things). But I don't know where to get it—a web search gives me lots of things that aren't it.

  • You can also concatinate PDFs in Preview. But your linked example is much easier.
    – Gilby
    Oct 17, 2022 at 3:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .