.STW

STW File

StarWriter/OpenOffice.org 1.x Text Document Template
Ask a question
QUICK ANSWER

An STW file is a word processor template from OpenOffice.org 1.x and StarOffice (2000-2005), used to store predefined styles and formatting for new documents. Open it with LibreOffice Writer or Apache OpenOffice Writer - both handle it without extra steps. For long-term use, save a copy as OTT (the modern equivalent) or DOCX.

Developer: Sun Microsystems / Oracle (StarOffice origin); The Document Foundation (LibreOffice) Category: Text Files Open standard MIME: application/vnd.sun.xml.writer.template
OPENS ON Windows macOS Linux
Related: .DOC · .ODT · .DOCX · .GDOC

On this page

19k+ extensions indexed
Last reviewed Aug 25, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the STW file format?

.stw is a word processor template format used by OpenOffice.org 1.x and StarOffice 6-8. It stores reusable document layouts, styles, and formatting - the template counterpart to .sxw writer documents - allowing users to create new documents with a predefined appearance.

Structurally, .stw files are ZIP archives using DEFLATE compression. Inside, the archive contains XML files following the OpenOffice.org 1.x schema: content.xml holds document content, styles.xml defines formatting, meta.xml stores metadata, and a mimetype entry identifies the format as application/vnd.sun.xml.writer.template. This schema pre-dates the standardised ODF specification and is not directly compatible with ODF 1.0 at the XML level, though modern applications convert transparently on open.

The format was introduced around 2000 with OpenOffice.org 1.0, which derived from the Sun/StarOffice 5.2 source code release. It was superseded in 2005 when ODF 1.0 introduced .ott as the standard writer template format.

LibreOffice Writer and Apache OpenOffice still open .stw files without issue but save in .ott or .odt by default. Renaming the file to .zip and extracting it reveals the internal XML files directly.

Files typically range from 10 KB to 500 KB, growing larger when templates embed images or complex graphical elements.

Security & safety

RISK: LOW

STW files are XML documents inside a ZIP archive - no executable code. LibreOffice macros embedded in a template would be the only potential risk, but LibreOffice prompts before running macros. Standard template files from trusted sources pose no security risk.

Format details

in a nutshell
FULL NAMEStarWriter/OpenOffice.org 1.x Text Document Templateaka OpenOffice.org Writer template, StarOffice Writer template
DEVELOPERSun Microsystems / Oracle (StarOffice origin); The Document Foundation (LibreOffice)since 2000 (OpenOffice.org 1.0 / StarOffice 6.0)
CATEGORYText Files
MIME TYPEapplication/vnd.sun.xml.writer.template
TYPEXML-based (zipped) word processor template
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
504B0304
ASCII
PK··
STW files are ZIP archives (same signature as ODF/ZIP). The mimetype entry inside the ZIP distinguishes it: 'application/vnd.sun.xml.writer.template'

Programs that open STW files

Windows3 apps
AbiWord Open-source Open via File → Open; limited fidelity for complex styles.
LibreOffice Writer Open-source Double-click the STW file; LibreOffice opens it as a template. Save As → OTT to modernise.
Apache OpenOffice Writer Open-source File → Open the STW file; opens natively as it shares the same 1.x format lineage.
macOS3 apps
NeoOffice Paid macOS-native fork of OpenOffice; opens STW. Note: development is slow, LibreOffice preferred.
LibreOffice Writer Open-source Open the STW file via File → Open.
Apache OpenOffice Writer Open-source File → Open; supports STW natively.
Linux2 apps
LibreOffice Writer Open-source libreoffice --writer template.stw
Apache OpenOffice Writer Open-source File → Open; supports STW natively.

Technical details

deep spec
ContainerZIP archive (DEFLATE compression per entry)
Internal MIME identifierapplication/vnd.sun.xml.writer.template (inside mimetype entry)
XML schemaOpenOffice.org 1.x (pre-ODF; incompatible with ODF 1.0 at the XML schema level)
Magic bytes50 4B 03 04 (standard ZIP header)
Key internal filescontent.xml, styles.xml, meta.xml, settings.xml, mimetype
Character encodingUTF-8 (XML throughout)
Typical file size10 KB - 500 KB
ZIP inspectionRenaming .stw to .zip and extracting reveals all internal XML files directly
Successor formatOTT (OpenDocument Text Template, ODF 1.0, 2005)
Companion formatSXW (OpenOffice.org 1.x writer document - same-era, non-template counterpart)
ChecksumZIP CRC-32 per entry
Platform supportWindows, Linux, macOS
Backward compatibilityLibreOffice and Apache OpenOffice auto-convert on open; save as OTT/ODT by default
Template scopeStores reusable styles, page layout, and default content for new Writer documents
Released2000 (OpenOffice.org 1.0 / StarOffice 6.0)
Latest versionOpenOffice.org 1.x / StarOffice 6-8 series; superseded by OTT in ODF 1.0 (2005)
Open standardYes · royalty-free
Specificationwww.oasis-open.org

STW conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with STW files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about STW files.

Frequently asked questions

How do I open an STW file?
Use LibreOffice Writer (free, cross-platform) - it opens STW files natively. Apache OpenOffice Writer also works.
Can Microsoft Word open STW files?
Not directly. Open it in LibreOffice Writer first, then save as DOCX, which Word can open.
What is the difference between STW and OTT?
Both are Writer template formats. STW is the older OpenOffice.org 1.x format (pre-2005); OTT is the modern ODF standard template. LibreOffice saves templates as OTT by default.
What is the difference between STW and SXW?
SXW is a regular OpenOffice.org 1.x document; STW is a template (defines default styles and formatting for new documents). Same era, same format family.
How do I convert STW to DOCX?
Open in LibreOffice Writer → File → Save As → choose DOCX format.

References

1Archiveteam - OpenDocumentfileformats.archiveteam.org
2LibreOffice - Supported file formatsbooks.libreoffice.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.PARTPartial Download File
5.RPMSGRestricted Permission Message
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.DOCMicrosoft Word 97-2003 Document
.ODTOpenDocument Text
.DOCXMicrosoft Word Open XML Document
.GDOCGoogle Docs Shortcut (Link to a Google Docs document)
.LSTList File (generic plain-text list / listing)
.VNTvNote (mobile phone text note / memo)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z