.RELS

RELS File

Open Packaging Conventions Relationships File
Ask a question
QUICK ANSWER

A RELS file is an internal XML part inside a Microsoft Office file (DOCX, XLSX, PPTX). You only see one if you unzipped an Office document. To read the actual document, open the original Office file - the .rels is plumbing, not content. You can view it as plain text in any editor.

Developer: Microsoft / ECMA / ISO (Open Packaging Conventions) Category: Settings Files Open standard MIME: application/vnd.openxmlformats-package.relationships+xml
OPENS ON Windows macOS Linux
Related: .ICA · .DS_STORE · .WMZ · .CFG

On this page

19k+ extensions indexed
Last reviewed Jul 22, 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 RELS file format?

.rels files are associated with Office Open XML software developed by Microsoft. .rels files store relationship metadata used when processing XML documents, mapping each part of a document package to its dependencies.

.rels files store XML-formatted relationship data. The root element is <Relationships>, which contains <Relationship> entries - each with an Id, a Type URI, and a Target path referencing an image, hyperlink, or another document part. .rels files are saved in _rels folders alongside the parts they describe: the package root uses _rels/.rels, while a Word body links its parts through word/_rels/document.xml.rels. Because OOXML packages such as .docx, .xlsx and .pptx are ZIP archives, a loose .rels file appears only after the package is extracted. .rels files can be edited with any standard text editor, then repacked into the ZIP using a tool such as 7-Zip.

Security & safety

RISK: LOW

A .rels file is tiny, passive XML and is not dangerous in itself. Two practical cautions: its <Relationship> entries with TargetMode="External" can point at external URLs, which is the mechanism behind some malicious Office documents (e.g. remote-template/link attacks), so a .rels referencing an unexpected external address in a suspicious document is a red flag worth inspecting. Also, editing a .rels by hand and repacking incorrectly will corrupt the parent Office file - work on a copy. The file can't execute anything on its own.

Format details

in a nutshell
FULL NAMEOpen Packaging Conventions Relationships Fileaka OOXML Relationships File, OPC .rels file
DEVELOPERMicrosoft / ECMA / ISO (Open Packaging Conventions)since 2006-2007 (Open Packaging Conventions, with Office 2007 / Office Open XML)
MIME TYPEapplication/vnd.openxmlformats-package.relationships+xml
TYPEXML relationships part inside an OOXML/OPC ZIP package (not a standalone document)
STANDARDOpen · royalty-free

Programs that open RELS files

Windows3 apps
Any text/XML editor (Notepad++, VS Code) Open-source It's plain XML - open it to read the <Relationship> entries. Use Format > XML to pretty-print.
Microsoft Word / Excel / PowerPoint (the parent file) Paid You don't open the .rels itself - open the .docx/.xlsx/.pptx it belongs to; Office uses the .rels internally.
7-Zip (to put parts back into the package) Open-source If you extracted an Office file, use 7-Zip to inspect/repack the ZIP so _rels stays in place.
macOS1 app
Text editor (BBEdit, VS Code) / LibreOffice for the parent Open-source View the .rels as XML in a text editor; open the actual document in LibreOffice or Office.
Linux1 app
Any XML editor / LibreOffice for the parent Open-source Read the .rels with any editor; open the parent OOXML file in LibreOffice.

Technical details

deep spec
File encodingUTF-8 (required by the OPC specification; no BOM)
MIME type`application/vnd.openxmlformats-package.relationships+xml`
ContainerInternal part of an OOXML/OPC ZIP package (`.docx`, `.xlsx`, `.pptx`, `.vsdx`, and others); not a standalone file
Storage locationAlways inside a `_rels` subfolder alongside the part it describes; the package root relationship file is always `_rels/.rels`
Root XML element`<Relationships>` in the fixed namespace `http://schemas.openxmlformats.org/package/2006/relationships`
Relationship attributesEach `<Relationship>` requires three attributes: `Id` (unique within the file), `Type` (a URI identifying the relationship role), and `Target` (relative or absolute path)
TargetMode values`Internal` (default - relative path inside the package) or `External` (absolute URI, used for hyperlinks and external data sources)
Naming conventionA part at `word/document.xml` stores its relationships at `word/_rels/document.xml.rels`; the pattern applies to every part in the package
CompressionDEFLATE-compressed as a ZIP entry inside the package; the XML content itself carries no additional compression layer
Typical file size100 bytes to a few kilobytes, depending on the number of relationships declared
Integrity checkingRelies on the ZIP container's per-entry CRC-32 checksum; no separate checksum is embedded in the XML
Binary signatureNone - file is identified by its path convention (`_rels/*.rels`), not magic bytes; content begins with the UTF-8 XML declaration followed by `<Relationships>`
Released2006-2007 (Open Packaging Conventions, with Office 2007 / Office Open XML)
Latest versionECMA-376 / ISO-IEC 29500 OPC; stable since the 1st edition (2008)
Open standardYes · royalty-free
Specificationlearn.microsoft.com

RELS conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with RELS 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 RELS files.

Frequently asked questions

What is a .rels file?
It's an internal XML part of a Microsoft Office (OOXML) file that lists the relationships between the parts inside the package - which XML references which image, hyperlink or section. It's plumbing, not a document.
How do I open a RELS file?
As text: open it in any editor (Notepad++, VS Code) to read the XML. But there's no content to read for an end user - to see the actual document, open the parent .docx/.xlsx/.pptx.
Why do I have loose .rels files?
You (or a tool) probably renamed an Office file to .zip and extracted it. The .rels files normally live inside the package at _rels/ and per-part _rels/ folders.
Can I delete the .rels file from a DOCX?
No. Removing _rels/.rels or a part's .rels breaks the references and corrupts the Office file. It must stay in place inside the package.
What program makes .rels files?
Microsoft Office and any software that writes OOXML/OPC packages (LibreOffice, python-docx, the Open XML SDK, etc.) generate them automatically inside the document.
Is a .rels file the actual document content?
No. It contains no text, numbers or slides - only the wiring that links the real content parts together. Open the parent Office file for the content.

References

1ECMA-376 - Office Open XML File Formatsecma-international.org
2ISO/IEC 29500 (Office Open XML / OPC) overview - Microsoftlearn.microsoft.com

Keep exploring

across the database

Top extensions this week

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

Related extensions

.ICACitrix Independent Computing Architecture file
.DS_STOREmacOS Finder Desktop Services Store (.DS_Store)
.WMZWindows Media Player Skin
.CFGConfiguration File
.LICLicense File
.CONFConfiguration File

Free file tools

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

Open the toolbox

Browse file extensions A-Z