ApplicationText-based
application/x-ndjson
Newline-Delimited JSON
Reference for application/x-ndjson, the MIME type for newline-delimited JSON used in streaming and log processing.
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: .ndjson, .jsonl
HTTP Content-Type Header
HTTP Header
Content-Type: application/x-ndjson; charset=utf-8Associated File Extensions
.ndjson.jsonl
Quick Facts
| MIME Type | application/x-ndjson |
| Category | Application |
| Type | Text-based (human-readable) |
| Extensions | .ndjson, .jsonl |
Common Usage
NDJSON (also called JSON Lines) stores one JSON object per line, making it ideal for streaming large datasets, log files, and data processing pipelines. Used by Elasticsearch bulk API, BigQuery imports, structured logging systems, and machine learning data pipelines.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.ndjson" type="application/x-ndjson">
<!-- Or for script/media elements -->
<script type="application/x-ndjson" src="file.ndjson"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('application/x-ndjson');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'application/x-ndjson' });nginx
# nginx.conf — add to types block or use default
types {
application/x-ndjson ndjson jsonl;
}
# Or set for a specific location
location /api/ {
default_type application/x-ndjson;
}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.