ApplicationText-based
application/toml
TOML
Reference for application/toml, the MIME type for TOML configuration files used in Rust, Python, and other ecosystems.
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: .toml
HTTP Content-Type Header
HTTP Header
Content-Type: application/toml; charset=utf-8Associated File Extensions
.toml
Quick Facts
| MIME Type | application/toml |
| Category | Application |
| Type | Text-based (human-readable) |
| Extensions | .toml |
Common Usage
TOML (Tom's Obvious Minimal Language) is a configuration file format designed to be easy to read. It is the standard for Rust's Cargo.toml, Python's pyproject.toml, Hugo site configuration, and various other tools that prefer explicit, unambiguous configuration.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.toml" type="application/toml">
<!-- Or for script/media elements -->
<script type="application/toml" src="file.toml"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('application/toml');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'application/toml' });nginx
# nginx.conf — add to types block or use default
types {
application/toml toml;
}
# Or set for a specific location
location /api/ {
default_type application/toml;
}Related MIME Types
More Application MIME Types
Other application types in the Application family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.