ApplicationText-based

application/ld+json

JSON-LD

Reference for application/ld+json, the MIME type for JSON-LD linked data used in SEO structured data and knowledge graphs.

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: .jsonld

HTTP Content-Type Header

HTTP Header
Content-Type: application/ld+json; charset=utf-8

Associated File Extensions

.jsonld

Quick Facts

MIME Typeapplication/ld+json
CategoryApplication
TypeText-based (human-readable)
Extensions.jsonld

Common Usage

JSON-LD (JSON for Linked Data) embeds structured data in web pages for search engines. Google recommends JSON-LD for schema.org markup, enabling rich search results (recipes, events, products, FAQs).

It is also used in the W3C Verifiable Credentials standard and ActivityPub.

Code Examples

HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.jsonld" type="application/ld+json">

<!-- Or for script/media elements -->
<script type="application/ld+json" src="file.jsonld"></script>
Node.js
// Express.js
app.get('/file', (req, res) => {
  res.type('application/ld+json');
  res.send(data);
});

// Node.js http
res.writeHead(200, { 'Content-Type': 'application/ld+json' });
nginx
# nginx.conf — add to types block or use default
types {
    application/ld+json  jsonld;
}

# Or set for a specific location
location /api/ {
    default_type application/ld+json;
}

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.