text/plain
Plain text file
Text
.txt
MIME Type
Media Type
text/plain
File Extension
.txt
Usage Examples
HTTP Response Header
Content-Type: text/plain
HTML Link Tag
<link rel="stylesheet" type="text/plain" href="style.css">
JavaScript Fetch API
fetch('/api/data', {
headers: {
'Content-Type': 'text/plain'
}
})Express.js (Node.js)
res.setHeader('Content-Type', 'text/plain');
res.send(data);When to Use This MIME Type
Text MIME types are used for human-readable content. Always use the correct MIME type to ensure proper rendering and character encoding.