DOTX

What is a DOTX file?

A Word template. Same content as DOCX, marked as a starting point rather than a document.

What DOTX is

DOTX is a container: a wrapper that holds streams encoded by something else. It is used for editing.

The extension is .dotx, and the full name is Word Template. Both matter less than what the file can hold, which is what the rest of this page is about.

Where DOTX came from

Microsoft published it in 2007. The specification is ECMA-376.

Age is worth knowing here for one practical reason: the older a format is, the more programs have had time to learn it.

The specification is public

It is published in full, so anyone can implement it from the document rather than by inspection, which is why it turns up in so many programs and why files written twenty years ago still open. A published specification is not the same thing as a royalty-free one: where a format wraps a codec, the patent licensing is a separate question the standard does not settle.

It can hold several pages in one file

DOTX is not limited to one page, which matters when converting to something that is: one conversion produces one file holding a single page — the first one, unless the page is something the converter lets you pick.

What kind of document it is

DOTX holds a text document: paragraphs that reflow to fit whatever page they land on.

That is what decides how it converts: the text reflows, so page numbers are a property of the output rather than of the file.

It is stationery, not a document

A DOTX file is meant to be opened as the starting point for a new document rather than edited in place. Converting one produces a document — which is usually what somebody wanted, and occasionally a surprise.

What opens DOTX

Microsoft Word reads it, and so do most programs of the same kind.

If a file will not open, the format is rarely the problem — it is more often that the program predates it. Converting to something older is the reliable way past that, and it is what the rest of this site is for.

Opening it in a browser

No browser reads it.

That is the single most common reason to convert it: not that the format is bad, but that the place you want to show the file cannot read it.

It is a working format

DOTX is meant to be opened and changed. Keep the file in this format for as long as the work is going on, and export from it whenever a finished copy is needed.

Identical to a DOCX, treated completely differently

A DOTX has the same internal structure as a DOCX — a ZIP package of XML with the text, styles, images and settings. What differs is the intent recorded in the package, and Word acts on it: double-click a template and you do not open the file, you get a new unsaved document that is a copy of it.

That single behaviour is the whole format. It is what stops a hundred people opening the company letterhead, typing into it and saving over the original, which is precisely what happens when a template is distributed as a DOCX.

What a template is actually carrying

Styles, first and most importantly: the definitions of Heading 1, Body Text, Quote and the rest, along with the numbering schemes attached to them. A document created from the template inherits all of it, which is how an organisation ends up with reports that look alike without anybody formatting anything by hand.

Then the theme — the font pairing and colour palette — plus page setup, margins, headers and footers, any boilerplate text, building blocks, and often a set of content controls where the writer is meant to fill something in. It is a starting point rather than a document, and everything in it is there to be inherited.

DOTX, DOTM and the older DOT

DOTX is the modern macro-free template. DOTM is the same thing with a VBA project attached, which is the legitimate home for a template that fills in fields or generates a document from a form — and it is the format to be as careful with as any other macro-enabled file. DOT is the pre-2007 binary template, and like every other pre-2007 format it is worth converting: smaller, documented, and unable to carry macros invisibly.

The rule of thumb is the same as elsewhere in Office: the letter at the end of the extension tells you whether code can be inside. X means no, M means yes, and a template with no automation should always be a DOTX.

Where templates have to live

Word looks in a specific folder — the user templates location, configurable in the options and by default inside the user’s AppData on Windows. A template saved anywhere else works when double-clicked and does not appear in the New Document gallery, which is the usual reason somebody says their template "did not install".

In an organisation, a workgroup templates path can point at a network share, so a template updated centrally appears for everybody. That is the arrangement worth setting up before a template is emailed to two hundred people, because the alternative is two hundred copies that will drift apart within a year.

Normal.dotm, and why Word suddenly looks wrong

Every blank document Word creates is based on Normal.dotm, the default template. It is macro-enabled by design, and it accumulates: a style redefined "for all documents based on this template", an autocorrect entry, a changed default font.

When Word starts behaving oddly — a default font nobody chose, a style that reverts, slow startup — a damaged Normal.dotm is the classic cause, and the classic fix is to close Word, rename the file, and let it be rebuilt from scratch. Anything you deliberately put in it is lost, which is a good argument for keeping deliberate customisations in a template of your own instead.

Attached templates, and the link that follows a document

A document created from a template keeps a reference to it. That link is how a document can pick up style changes when the template is updated, and it is also how a document created from a template on a network share becomes slow, or shows an error, when opened somewhere that share is unreachable.

The reference is visible under the developer or template settings and can be pointed elsewhere or removed. It is worth checking on any document that opens slowly for no apparent reason, and on anything being sent outside the organisation — a document quietly telling the recipient’s Word to look for a file on your internal network is not a good look.

Converting one

To DOCX, when you want to edit the template’s own content as a document rather than start a new one from it — though the more direct route is to open it deliberately from within Word rather than by double-clicking, which edits the template itself.

To PDF only to show somebody what the template produces; a template is a starting point and a PDF of one is a picture of an empty form. And converting a DOTM to DOTX to strip macros is the same operation as elsewhere in Office, with the same trade: the automation goes and everything else stays.

The facts, in one place

Identifiers and provenance for the DOTX format.
Extension.dotx
Media typeapplication/vnd.openxmlformats-officedocument.wordprocessingml.template
Published byMicrosoft
First published2007
SpecificationECMA-376

DOTX files: common questions

What is a DOTX file?

A Word template. Internally it is the same as a DOCX, but Word treats it as a starting point: double-clicking creates a new unsaved document that is a copy, rather than opening the file itself.

How do I edit a template instead of creating a document from it?

Open it deliberately from within Word — File, then Open — rather than double-clicking it. Double-clicking always makes a copy, which is the behaviour the format exists to provide.

Why does my template not appear in the New Document gallery?

It is not in the templates folder Word looks in. That location is set in Word’s options and defaults to a folder inside your user profile — a template saved anywhere else works when double-clicked and never appears in the gallery.

What is the difference between DOTX and DOTM?

DOTM can contain VBA macros and DOTX cannot. A template that fills in fields or generates a document from a form is legitimately DOTM; one with no automation should always be DOTX, and the extension is what tells a recipient which they have.

What is Normal.dotm?

The default template behind every blank document Word creates. It accumulates style changes, autocorrect entries and default settings, and a damaged one is the classic cause of Word behaving oddly. Closing Word and renaming the file makes it rebuild from scratch.

Why is my document slow to open?

It may be looking for an attached template on a network share that is unreachable. A document created from a template keeps a reference to it, and that reference is worth checking — and removing — before sending the document outside your organisation.