Rich Text Format MIME Type
application/rtf means, how RTF stores formatted documents, which programs open it, and how Poly handles .rtf files. MIME type details for application/rtf
In active use| MIME type | application/rtf |
|---|---|
| Extensions | .rtf |
| Magic number | 7B 5C 72 74 66 (`{\rtf`) |
| Alternate versions | text/rtf |
| First standardized | 1987 |
| Created by | Microsoft Corporation |
| Browser support | No native browser preview |
| Example applications | Microsoft Word, Apple TextEdit, LibreOffice Writer |
| Poly support | Partial. Poly recognizes application/rtf, but treats that exact type as an opaque archive. A .rtf filename is instead inferred as text/rtf and handled as generic text, without RTF parsing. |
| Indexed by Poly | Partial. application/rtf files are searchable by name and ordinary properties only. Extension-inferred text/rtf files have their raw control words and text indexed, not their rendered document structure. |
| Preview in Poly | Partial. application/rtf has no preview. Extension-inferred text/rtf opens in the text editor as RTF source code, not as a formatted page. |
| Poly agent | Partial. The agent cannot read an application/rtf payload, but it can read and edit extension-inferred text/rtf as raw text. It does not render or interpret the RTF document model. |
What does application/rtf mean?
The application/rtf media type identifies a Rich Text Format document. Microsoft designed RTF to exchange formatted text and graphics between word processors, operating environments, and output devices. An RTF file can describe fonts, styles, paragraphs, page layout, tables, fields, footnotes, tracked changes, pictures, and embedded objects while remaining largely text-based.1
The standard filename extension is .rtf. Every conforming file starts with the five ASCII characters {\rtf, whose hexadecimal bytes are 7B 5C 72 74 66.2 The number immediately after that prefix identifies the RTF syntax version used by the file, as in {\rtf1.
Is text/rtf the same as application/rtf?
In practice, both registered media types refer to Rich Text Format. text/rtf was registered in 1993, while the more detailed application/rtf registration was updated in 2007. IANA continues to list both.23
application/rtf is generally the better label for file transfer. RTF can contain unencoded 8-bit characters and binary picture data, so the IANA registration gives it binary encoding considerations. It also says that RTF defines character encoding inside the document, which makes an external charset parameter redundant.2
The distinction still matters to software. A program may route text/rtf through a text handler and application/rtf through a binary-document handler even when the bytes describe the same format. A filename and a server-provided Content-Type can therefore produce different behavior.
Do not confuse either type with text/richtext. That older MIME format uses angle-bracket commands and is unrelated to Microsoft's backslash-based RTF syntax. The name was confusing enough that the IETF renamed its successor text/enriched.4
How is an RTF file structured?
RTF uses braces for groups and backslashes for control words. This is a small complete example:
{\rtf1\ansi\deff0
{\fonttbl{\f0 Arial;}}
\f0\fs24 Plain text, \b bold\b0, and \i italic\i0.\par
}
The outer group begins with \rtf1. \ansi selects a character-set convention, \fonttbl defines available fonts, \fs24 selects 24 half-points, and \par ends a paragraph. Braces let formatting state and destinations nest. A reader that encounters an unknown optional destination can skip its group, which helped newer writers remain usable with older readers.1
Text encoding is less simple than the file's ASCII-looking surface suggests. RTF has code-page declarations, hexadecimal byte escapes, and Unicode control words with fallback characters for older readers. A naive search-and-replace operation can damage delimiters, change an escape, or modify text that is not part of the visible body.
RTF can also carry pictures and objects. The IANA registration therefore warns that transports limited to textual data may need a binary-safe transfer encoding.2 Large hexadecimal image blocks are one reason a real RTF document may be much harder to read as source than the short example above.
Where did RTF come from?
Microsoft published an early RTF description in the March 1987 issue of the Microsoft Systems Journal. RTF 1.0 followed in 1992. Microsoft revised the format alongside successive Word releases, ending with RTF 1.9.1 for Word 2007 in March 2008.5
The format's main purpose was interchange. A sender could preserve more structure and presentation than plain text without requiring the receiver to use the same word processor or operating system. Microsoft Word, Apple TextEdit, LibreOffice Writer, and many other applications still open .rtf files. Microsoft documents RTF as a supported Word format, and Apple documents opening, saving, and converting RTF in TextEdit.67
RTF is still in use, but its specification has not gained the document features introduced after Word 2007. A modern word processor may therefore lose newer features when saving to RTF. Different applications can also interpret complex tables, fields, drawings, fonts, and embedded objects differently.5
How do you open an application/rtf file?
General-purpose web browsers do not provide a native formatted RTF viewer. A browser will normally download the response or hand it to an application selected by the operating system. Use a word processor when layout matters:
- Microsoft Word opens and saves
.rtfas a supported document format.6 - Apple TextEdit opens RTF, edits formatted text, and exports it to other formats or PDF.7
- LibreOffice Writer includes an
application/rtfimport and export filter.8
If you only want to inspect the syntax, use a plain-text or code editor. Check that the file begins with {\rtf; an .rtf suffix alone is not proof of its contents.
Support in Poly
Poly currently has two different paths for this format:
- The exact
application/rtfidentifier is recognized as an archive-category type. Poly stores, syncs, shares, versions, and finds the file by name, but it does not parse, render, or index the payload. - A filename ending in
.rtfis inferred astext/rtf. That type goes through Poly's generic text pipeline, opens in the text editor, and is indexed for full-text and semantic search.
The second path exposes the RTF source, not the formatted document. Searches can match visible words, but they can also match control words, font names, metadata, fallback text, or encoded material. Poly does not remove RTF markup, lay out pages, generate document thumbnails, extract embedded images, or preserve a rendered page model for search.
The same boundary applies to the agent. It can read and edit an .rtf file that Poly classified as text/rtf, but it receives raw RTF syntax. A payload retained as exact application/rtf is not exposed as readable content. For dependable page preview, clean text extraction, and page-aware agent access, convert a trusted RTF to PDF or DOCX and upload the converted copy.
application/rtf to text/rtf does not parse or sanitize the document. It only changes which Poly processing path receives the same bytes.Converting RTF to another format
Choose the output according to what needs to survive:
| Destination | Best for | What to check |
|---|---|---|
| DOCX | Continued editing in modern word processors | Fields, tracked changes, drawings, and application-specific formatting |
| Sharing a fixed visual result | Font substitution, links, page breaks, and accessibility | |
| ODT | Editing in an open document workflow | Complex Word-specific fields and layout |
| HTML | Publishing reflowable content on the web | Styles, images, tables, and generated markup |
| Plain text | Keeping only readable characters | All formatting, images, notes, and document structure are discarded |
LibreOffice supports command-line conversion through its documented filters. For example:
soffice --headless --convert-to pdf --outdir converted input.rtf
Conversion is not an extension rename. The application must interpret the RTF control words and write a new representation. When the source is untrusted, perform that interpretation in maintained software with operating-system sandboxing and reasonable resource limits.
Security, privacy, and interoperability
The application/rtf registration says that RTF does not allow executable content and provides no built-in integrity or confidentiality. It also warns about references to external files and objects.2 That narrower language-level claim should not be mistaken for a guarantee that every RTF parser is safe.
RTF can contain embedded objects, pictures, fields, links, and large or deeply nested structures. Historically, vulnerabilities in applications that process those features have made malicious RTF attachments a delivery vehicle. Treat an unexpected RTF like any other complex document: keep the viewer updated, avoid enabling external content, and open it in an isolated environment when the sender or origin is uncertain.5
Metadata can be easy to overlook. The optional \info group may contain an author, title, company, creation and revision times, comments, and user-defined properties. Tracked changes and annotations can preserve text that is not obvious in the final view.5 Inspect document properties and revision content before publishing a sensitive file.
Interoperability depends on the features used, the RTF version a writer emits, the reader's implementation, and the fonts installed on the destination system. For simple styled prose, RTF remains a practical interchange format. For an editable modern document, DOCX or ODT is usually a better working format. For a fixed review or archival copy, use an appropriate PDF profile and retain the original source.
Footnotes
- Microsoft Corporation. Rich Text Format (RTF) Specification, Version 1.9.1. The March 2008 specification documents RTF syntax, control words, destinations, text encodings, document structure, pictures, and embedded objects. ↩ ↩2
- Internet Assigned Numbers Authority.
application/rtfMedia Type Registration. The registration documents parameters, binary encoding considerations, security notes, the{\rtfsignature, and the.rtfextension. ↩ ↩2 ↩3 ↩4 ↩5 - Internet Assigned Numbers Authority.
text/rtfMedia Type Registration. The historical registration is dated June 1993. ↩ - Internet Engineering Task Force. RFC 1523: The
text/enrichedMIME Content-Type. Appendix B explains thattext/richtextcaused confusion with Microsoft's RTF. ↩ - Library of Congress. Rich Text Format (RTF) Family. The format description covers RTF history, versions, identification, adoption, metadata, interoperability, accessibility, and security concerns. ↩ ↩2 ↩3 ↩4
- Microsoft. File Format Reference for Word, Excel, and PowerPoint. Microsoft lists
.rtfas a Word-supported interchange format that preserves document representation and formatting. ↩ ↩2 - Apple. Create, Open, and Convert Documents in TextEdit on Mac. Apple documents opening, editing, saving, and converting RTF files in TextEdit. ↩ ↩2
- The Document Foundation. File Conversion Filter Names. LibreOffice lists its Rich Text Format import and export filter as
application/rtfwith the.rtfextension. ↩