Which MIME types are related to file extension ".jsonld"?

The .jsonld file extension is associated with 2 MIME types:

application/ld+json, application/json.

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

About .jsonld Files

JSONLD files are text files that store structured, linked data in JSON format.
They can use the MIME type application/ld+json (often seen with RO‑CRATE projects) or application/json when handled as standard JSON data.
They embed semantic context to make the data both human and machine readable.

These files are edited or viewed using text editors and specialized tools like Visual Studio Code or Notepad++.
Based on information from FilExt.com, JSONLD files play a key role in the Semantic Web by linking diverse pieces of information in a structured format.

Relationship between file extension and MIME type

A file extension is a suffix at the end of a filename that indicates what type of file it is. File extensions help both users and operating systems identify what application should be used to open the file.

File extensions are typically separated from the filename by a period (dot) and consist of 2-4 characters, though they can be longer. For example, in the filename "document.pdf", ".pdf" is the file extension.

File extensions are closely related to MIME types, as they both serve to identify the format of a file. However, while MIME types are used primarily by web browsers and servers, file extensions are used by operating systems and applications.

Associated MIME types

application/ld+json, application/json

FAQs

What is a .jsonld file?

A .jsonld file contains JSON for Linked Data, a method of encoding Linked Data using JSON. It allows data to be serialized in a way that is similar to traditional JSON but includes a @context field to link data to Semantic Web concepts, making it readable by both humans and machines.

How do I open and edit a .jsonld file?

Since .jsonld files are plain text, you can open them with any code or text editor. Popular choices include Visual Studio Code, Notepad++, Sublime Text, or even the built-in Notepad on Windows and TextEdit on macOS.

What is the difference between .json and .jsonld?

While every .jsonld file is technically valid JSON, standard .json files lack the semantic context required for Linked Data. A .jsonld file specifically includes a @context property that maps terms to IRIs (Internationalized Resource Identifiers), allowing different applications to understand the data's meaning unambiguously.

Which MIME type should I use for serving .jsonld files?

The standard MIME type for JSON-LD is application/ld+json. While servers may sometimes serve it as standard application/json, using the specific linked data type ensures clients parse the semantic context correctly. You can verify configuration details at mime-type.com.

Why is JSON-LD important for SEO?

Search engines like Google recommend using JSON-LD for Structured Data markup on websites. By embedding a .jsonld script tag in a web page, you provide search engines with specific details about content (like recipes, products, or events), which can generate "Rich Snippets" in search results.

Can I convert .jsonld files to other formats?

Yes, JSON-LD is a serialization of RDF (Resource Description Framework). You can use online converters or libraries to transform .jsonld files into other RDF formats like Turtle (.ttl), N-Triples, or RDF/XML depending on your project requirements.

Why does my OS not recognize the .jsonld extension?

Most operating systems do not have a default association for .jsonld because it is a developer-focused format. To fix this, right-click the file, select "Open with...", and choose your preferred text editor (like VS Code) to set a permanent association.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why can one extension have multiple MIME types?

Different programs and historical usage may assign various MIME identifiers to the same file format. Listing them together helps maintain compatibility across tools.