TextText-based
text/rtf
Rich Text Format (Text)
Reference for text/rtf, the text-oriented MIME type for Rich Text Format documents with basic formatting support.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
Expected extensions: .rtf
HTTP Content-Type Header
HTTP Header
Content-Type: text/rtf; charset=utf-8Associated File Extensions
.rtf
Quick Facts
| MIME Type | text/rtf |
| Category | Text |
| Type | Text-based (human-readable) |
| Extensions | .rtf |
Common Usage
RTF provides cross-platform text formatting support, including bold, italic, fonts, and colors. It serves as a common denominator between word processors and is used in clipboard operations, email composition, and document interchange between different office suites.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.rtf" type="text/rtf">
<!-- Or for script/media elements -->
<script type="text/rtf" src="file.rtf"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('text/rtf');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'text/rtf' });nginx
# nginx.conf — add to types block or use default
types {
text/rtf rtf;
}
# Or set for a specific location
location /api/ {
default_type text/rtf;
}Related MIME Types
More Text MIME Types
Other text types in the Text family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.