Ask Your Question

Why does LibreOffice produce such bloated .odt files? [closed]

asked 2013-02-17 02:05:00 +0200

updated 2015-09-06 22:48:12 +0200

Alex Kemp gravatar image

The size of a six-page .docx file created with Microsoft Word 2010: 9.98 kilobytes

The size of a .odt file with identical content created with Microsoft Word 2010: 15.4 kilobytes

The size of a .odt file with identical content created with LibreOffice 4.0: 30.0 kilobytes

A smaller file, only a page long, results in a size of 6kB when saved from Word but of about 15kB when saved from LibreOffice writer. What's going on here? Is this a bug?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-27 03:34:12.068075


Hi @Uglyface200, The comparison is very interesting. Could you please attach the example files that you describe above so that we could see how they differ?


qubit gravatar imagequbit ( 2013-02-17 05:35:33 +0200 )edit

I don't know how to attach files.

Uglyface200 gravatar imageUglyface200 ( 2013-02-17 22:12:46 +0200 )edit

Hi @Uglyface200, You have enough karma to upload files, so that shouldn't be an issue :-)

When creating a new Answer (or editing an existing one), please click the paperclip icon in the toolbar to upload.


qubit gravatar imagequbit ( 2013-02-17 23:17:06 +0200 )edit

I don't have enough new info to merit an "answer", so I'll post this observation as a comment. I had a .docx file that I created in Word, brought home, and opened in LibreOffice. I ended up with a 4.5mB file, and LibreOffice was crashing/recovering frequently when I would go into the Formula Editor (doing math homework). When I opened a new Writer document and copy-pasted the contents from the Word document, the resulting file was 500kB.

RobertB gravatar imageRobertB ( 2014-09-29 07:10:15 +0200 )edit

7 Answers

Sort by » oldest newest most voted

answered 2013-02-21 05:16:27 +0200

mahfiaz gravatar image

I took a look at the odt files you provided. To see it yourself, rename these to .zip files and unpack.

1) Writer ODT contains 8.1 KB preview image of document. Word ODT does not. Please note that this is a feature (this image is what you might see instead of Writer icon in file manager).

This seems to leave with only 6.5 KB overhead. When I deleted Thumbnails directory from the zip file, I got: 13.9 KB Writer zip vs 12.3 KB Word zip, which is 1.6 KB difference.

(a fun note, with completely white first page the same document size was 14.9 KB)

2) other two notable file size differences are styles.xml 14.4 vs 8.1 KB settings.xml 9.9 vs 1.4 KB

styles.xml has some extra styles for graphics, tables, even if these are not used in the document. The largest chunk is outline settings (how 10 levels of headings are positioned and numbered).

settings.xml contains stuff like printing settings, where your cursor was when you saved and stuff. Word's settings file is empty, it contains nothing useful at all.

3) the content.xml file in Writer ODT is actually smaller, 29.5 KB vs 53.5 KB. This means that with longer documents Writer ODT will actually be smaller than Word ODT files. Although these need to be pretty long ones (especially when you need to overcome the thumbnail size). In other words, Writer ODT's base size is larger, and it is so mostly due to included Thumbnail image.

edit flag offensive delete link more


I don't like the thumbnail feature. It's not very useful, because it's only ever seen at small sizes, sizes at which the first pages of most files don't look very different. Also, I suppose this partially explains why Word can't directly open the ODT files I create with Writer.

Uglyface200 gravatar imageUglyface200 ( 2013-02-21 21:42:10 +0200 )edit

It's usefulness is questionable, depends on your documents. But as for Word's inability to open ODT files, this is just bad engineering on their side (or worse if it is intentional). But for sure the reason is not previews, an extra file inside a ZIP cannot break anything, if it's not used.

mahfiaz gravatar imagemahfiaz ( 2013-02-21 23:07:02 +0200 )edit

Is it possible to turn the thumbnail feature off?

bennypr0fane gravatar imagebennypr0fane ( 2016-03-07 23:17:28 +0200 )edit

@benny, not that I know of. Nowadays pretty much nobody cares about file sizes below few MBs. If you archive a lot of ODT files you could remove the thumbnail for yourself.

Also fun fact: unzipped (e.g TAR-ed) ODT would actually compress better if you compressed more than one file like this.

mahfiaz gravatar imagemahfiaz ( 2016-08-13 21:28:25 +0200 )edit

answered 2013-03-21 17:55:44 +0200

I thought I'd mention an interesting postscript to this question. I had a ten-megabyte .docx file of a book that I was working on. I saved it in .odt format from Word 2010, and the file size absolutely plummeted to 645 kilobytes! That is a 629% decrease! So, by all means, use the .odt format, even if it is marginally inefficient at small sizes.

edit flag offensive delete link more



Off the top of my head, I can think of at least two reasons why the .docx file is so big: 1) it probably keeps a revision history even though this has not been requested (I have experienced this many times with .docx files sent by colleagues and sometimes, obsolete and deleted content shows up at the end of the document even though it has been deleted) 2) OOXML’s tag names are shorter, but harder to compress efficiently because much more numerous (see Rob Weir’s blog for explanations of that).

CyanCG gravatar imageCyanCG ( 2013-03-21 18:46:38 +0200 )edit

answered 2013-02-21 01:48:36 +0200

qubit gravatar image

Hi @Uglyface200,

I'm not sure if/when we can get docx file upload available on this site. Looks like things are pretty busy in IT land for the foreseeable future. I'm pretty sure that we can upload docx files at bugzilla, so here are couple of options:

  1. File an enhancement request bug and attach some example files. I'd concentrate on the same file type first -- so if (given the same input) MS-Word creates smaller ODT files than LO-Writer, then report that.

  2. Punt on this question for a while, until we have some time to clear up our IT work queue.


edit flag offensive delete link more

answered 2013-02-20 01:21:36 +0200

updated 2013-02-20 23:35:25 +0200

qubit gravatar image

This is not an answer to the question.

At the request of qubit, In Microsoft Word, I created a document of the Mozilla Public License. I saved the file in .odt and .docx format.

Then I opened the .odt file with Writer and saved it as a new file, and it ballooned from 13kb to 22kb. Just for the heck of it, I opened the .docx file with LibreOffice and saved it as a new file. It shrank from 22kb to 10kb!

The involved .odt files are attached (I wanted to attach the others, but why on Earth does this site not allow .docx files?). No content was changed after the initial save.

Word ODT.odt

Writer ODT.odt

edit flag offensive delete link more


@Uglyface200, Good question about docx uploads. Let me run the idea past the other admins and see if there's a specific reason why that support isn't enabled.

qubit gravatar imagequbit ( 2013-02-20 05:11:41 +0200 )edit

Regarding the comparison of file sizes, lemme resolve the file-upload issue first, then we can get back to that :-)

qubit gravatar imagequbit ( 2013-02-20 05:15:37 +0200 )edit

answered 2013-02-17 02:24:04 +0200

m.a.riosv gravatar image

Have you analysed what happen with different sizes?.

Please take a look to this thread.

edit flag offensive delete link more


There are no images involved in either file. And performance is equal at all sizes.

Uglyface200 gravatar imageUglyface200 ( 2013-02-17 04:48:10 +0200 )edit

answered 2013-02-20 23:38:35 +0200

qubit gravatar image

Here's a suggestion on how you could present the results:


edit flag offensive delete link more

answered 2013-02-20 03:11:00 +0200

The fair way to comparison is create new document in both Office with same content. Open .odt document (that generate by MSO-2010) in LO-4 then save new .odt is unfair. Because some generic code from MSO are embed to file. I've no MSO-2010, so I can't see the different result between create new document and save-as .odt document from MSO-2010.

edit flag offensive delete link more

Question Tools


Asked: 2013-02-17 02:05:00 +0200

Seen: 5,913 times

Last updated: Mar 21 '13