# .jsonld MIME Type: application/ld+json

> Linked data in JSON — most often the structured data inside `<script type="application/ld+json">` tags.

- MIME type: `application/ld+json`
- Extensions: .jsonld
- Content-Type header: `application/ld+json`
- Compress in transit: yes

## Good to know

- Search engines read JSON-LD from script tags in the page; you rarely serve `.jsonld` files directly.
- A script tag with this type isn't executed — it's data, so it doesn't need a CSP nonce.

## Server configuration

### nginx (inside the types block in mime.types)

```
application/ld+json jsonld;
```

### Apache (.htaccess or server config)

```
AddType application/ld+json .jsonld
```

### Express

```
res.set("Content-Type", "application/ld+json");
```

### Python

```
import mimetypes

mimetypes.add_type("application/ld+json", ".jsonld")
```

### HTML file input

```
<input type="file" accept=".jsonld,application/ld+json">
```

## FAQ

### What is the MIME type for .jsonld files?

`application/ld+json`.

### What Content-Type header should a .jsonld file be served with?

`Content-Type: application/ld+json`. It compresses well, so let the server apply gzip or Brotli.

## Related types

- [.json — application/json](https://www.devkult.com/mime/json.md)
- [.html — text/html](https://www.devkult.com/mime/html.md)

Open the interactive page: https://www.devkult.com/mime/jsonld