TextText-based
text/markdown
Markdown
Reference for text/markdown, the MIME type for Markdown formatted text used in documentation, README files, and content.
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: .md, .markdown, .mkd
HTTP Content-Type Header
HTTP Header
Content-Type: text/markdown; charset=utf-8Associated File Extensions
.md.markdown.mkd
Quick Facts
| MIME Type | text/markdown |
| Category | Text |
| Type | Text-based (human-readable) |
| Extensions | .md, .markdown, .mkd |
Common Usage
Markdown is a lightweight markup language for creating formatted text using a plain text editor. It is used for README files, documentation, blog posts, GitHub comments, Jupyter notebooks, and content management systems.
Markdown renders to HTML for web display.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.md" type="text/markdown">
<!-- Or for script/media elements -->
<script type="text/markdown" src="file.md"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('text/markdown');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'text/markdown' });nginx
# nginx.conf — add to types block or use default
types {
text/markdown md markdown mkd;
}
# Or set for a specific location
location /api/ {
default_type text/markdown;
}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.