Quick answer. Converting MBOX to HTML turns each email into a web page you can open in any browser, no mail client needed. Thunderbird exports HTML for free with the ImportExportTools NG add-on, a short script suits developers, and a converter reads MBOX directly and keeps attachments across a bulk job.

What you actually get?

It helps to know what this conversion produces before you pick a method. An MBOX file is a single container holding a whole folder of emails one after another, which is why you cannot just double click it and read it. Converting it to HTML pulls each message out and saves it as its own web page, so what you end up with is a set of .html files, usually one per email, plus an index page that links them together. Open the index in any browser and you can read the mail like a small website, with no Thunderbird, no Apple Mail and no account setup.

That is why people reach for HTML rather than another format. It opens everywhere, it is easy to share or archive, and it keeps the look of the original message. It is also a common way to hand over email for a records request or a legal disclosure, because anyone can open it without special software.

One container of mail becomes a small browsable website. MBOXOne file,many emailsneeds a mail client convert HTML files index one page per email Browseropens anywhere,no client needed

The result is a folder of web pages you can open, search and share anywhere.

Convert MBOX to HTML free with Thunderbird

The most accessible free route uses Thunderbird with a free add-on, and it works whether or not the mail is already in Thunderbird.

Step 1. Install Thunderbird, then add the free ImportExportTools NG add-on from the add-ons manager.

Step 2. Get your MBOX into Thunderbird. If it is not there already, right click a folder, choose ImportExportTools NG then Import mbox file.

Step 3. Right click the folder you want, choose ImportExportTools NG then Export all messages in the folder, and pick HTML format, or HTML format with attachments if you want the files saved alongside.

Step 4. Choose a destination folder. Thunderbird writes an HTML page per email and an index you can open in any browser.

It is genuinely free and it keeps the message formatting. The honest downsides are that you need Thunderbird set up, you work a folder at a time, and importing a very large mailbox first can be slow.

The developer route, a short script

If you are comfortable with a terminal, Python reads MBOX out of the box, so you can turn a mailbox into HTML with a short script and no software at all. The mailbox module opens the file, and you walk the messages writing each one out as its own page.

This is the neat option for a one off on a server or when you want full control of the output. Be honest with yourself about the limits though, plain text and simple HTML bodies are easy, but inline images, mixed encodings and attachments each need a little extra handling in the code. For a quick readable dump it is perfect, for a faithful copy with every image showing it is more work than it first looks.

What a good conversion keeps?

However you do it, the difference between a good MBOX to HTML conversion and a rough one comes down to how much of the original message survives. It is worth knowing what to check, because a page that merely shows the text has quietly lost things you may need.

Four things matter. The headers, so you can still see who sent it, to whom and when. The inline images, the pictures embedded in the body, which break into empty boxes if the conversion does not save and relink them. The attachments, kept alongside rather than dropped. And the character encoding, decoded properly so accented letters and other alphabets read correctly instead of turning into gibberish. A conversion that handles all four gives you a page that reads exactly like the original email.

A faithful page keeps all four of these. Headerswho, to whom, when Inline imagesshown, not broken Attachmentskept alongside Encodingé ñ üreads correctly,not gibberish

Check these four, since a rough conversion quietly drops them.

“HTML is one of the best ways to hand someone an email they can actually read, because it opens in any browser and needs no account or client. The thing that matters in my work is fidelity, the headers have to be there and the inline images have to render, because an email stripped down to bare text is not the same document that was received. When a conversion keeps the message whole, an HTML copy becomes something you can genuinely rely on for a record or a disclosure.” Shubham Dixit, Email Forensics reviewer (draft, pending approval)

Convert MBOX to HTML in bulk with a converter

When the free routes get tiring, usually because you have many MBOX files, no Thunderbird to hand, or a loose mailbox from another machine, a dedicated converter is the calmer path. It reads the MBOX files directly, so no email client is involved, and it handles the four things above without you scripting anything. The PCDOTS MBOX Converter loads one or many MBOX files, previews the mail, and exports it to HTML in one run on your own PC with nothing uploaded, keeping attachments and formatting. It can also export only the emails you want, filtering by sender, recipient or subject, which the folder wide Thunderbird export cannot. There is a free version to try on your own files first.

1Add MBOXFiles or awhole folder 2PreviewRead the mailin the pane 3Pick HTMLFrom theexport list 4SaveSet a folder,run it iReads MBOX directly, keeps attachments, no mail client needed.

The bulk route, for a stack of MBOX files in a single run.

Here are the steps with the screens.

Step 1. Run the converter on Windows and click the Open menu.

Run the MBOX to HTML converter

Step 2. Choose Email Data Files then MBOX Files, and add your files or a whole folder.

Add the MBOX files or folder

Step 3. Click Export and select HTML from the list.

Select HTML as the export format

Step 4. Browse to a destination and click Save.

Choose the destination and save the HTML files

If you only need to read the mailbox rather than convert it, a free MBOX file viewer opens it on its own. There are also guides to convert MBOX to EML for individual message files, and to convert PST to MBOX if your mail started life in Outlook.

Free Download
Buy Now

The methods compared

Pick by how many files you have and how much you want to fiddle.

Method Best for Good to know
Thunderbird export A folder or two, free Needs Thunderbird and the add-on
Python script A one off, full control Images and attachments need work
MBOX converter Many files, keeps attachments Reads MBOX directly, selective

Frequently asked questions

How do I convert MBOX files to HTML?
Free, import the MBOX into Thunderbird and use the ImportExportTools NG add-on to export the folder as HTML. Developers can script it with Python. For many files or to keep attachments cleanly, a converter reads the MBOX directly and writes HTML in bulk.

Can I convert MBOX to HTML for free?
Yes. Thunderbird with the free ImportExportTools NG add-on exports a folder of mail to HTML at no cost, and a short Python script does it too. Both keep the file on your own machine.

Will the attachments and images come across?
They should, if you use the right option. Thunderbird has an HTML with attachments export, and a good converter keeps inline images and attachments so the page reads like the original. A bare text export drops them.

Why do I want MBOX as HTML?
HTML opens in any web browser with no mail client, so it is easy to read, share and archive. It is also a common, readable format for handing over email in a records request or legal disclosure.

Do I get one HTML file or many?
Usually one HTML page per email plus an index page that links them together, so you can browse the mailbox like a small website. Some tools can also combine a thread into a single page.

Can I convert many MBOX files at once?
Yes, with a converter. It loads a folder of MBOX files and writes HTML for all of them in a single run. The Thunderbird route works one folder at a time.

Mail anyone can open

The appeal of HTML here is simple, it takes email out of a format only a mail client understands and turns it into pages that open on any device, for anyone. For a folder or two, Thunderbird and the free add-on will do it without costing a thing, and a short script covers the developer who wants it automated. When the pile is bigger, or the mail is loose and there is no Thunderbird in sight, a converter that reads MBOX directly and keeps the attachments will get you there in one run. Whichever you choose, aim for the version that keeps the whole message, headers and images included, so what you can open later is the email as it actually arrived.

Shubham Dixit

Reviewed by Shubham Dixit

Independent Expert in Email Forensics and Data File Conversion. Shubham reviewed this guide for technical accuracy. He is an independent external reviewer and not an employee of PCDOTS.

Profile  |  LinkedIn