Loading RDF Turtle to JSON Converter...
Please wait a moment

How to Convert RDF Turtle to JSON - Step by Step Guide

Step 1

Input Your RDF Turtle Data

Start by inputting your RDF Turtle data that you want to convert to JSON. Whether you're extracting data from triple stores, working with linked data, or preparing semantic web data for analysis:

•
Paste directly: Copy your RDF Turtle data and paste it into the input editor
•
Upload a file: Click "Upload" to select a .ttl or .turtle file from your computer
•
Try the sample: Click "Sample" to load example data and see how the converter works

Example: Sample RDF Turtle Input

Here's a sample RDF Turtle data representing a person:

@prefix schema: <http://schema.org/> .

<http://example.org/person/1>
  a schema:Person ;
  schema:name "Dr. Yuki Tanaka" ;
  schema:email "y.tanaka@university.edu" ;
  schema:affiliation "MIT" ;
  schema:jobTitle "Research Scientist" .
Step 2

Conversion to JSON-LD

As you type, N3.js reads the Turtle and the result appears as JSON in JSON-LD form. Along the way it:

•
Parses RDF triples: Reads every subject-predicate-object statement; a syntax error is shown with its line and column
•
Resolves prefixes: Expands namespace prefixes to full URIs
•
Groups by subject: One object per subject; a blank node used once is nested where it is used, and RDF lists become "@list" arrays

Example: Converted JSON Output

The same data, now in JSON format:

{
  "@id": "http://example.org/person/1",
  "@type": "http://schema.org/Person",
  "http://schema.org/name": "Dr. Yuki Tanaka",
  "http://schema.org/email": "y.tanaka@university.edu",
  "http://schema.org/affiliation": "MIT",
  "http://schema.org/jobTitle": "Research Scientist"
}
Step 3

Export Your JSON Data

Get your converted JSON data ready for use in web applications, data analysis, or APIs:

•
Copy to clipboard: One-click copying for quick use in your applications
•
Download as .json file: Save for later use or integration with your projects
•
Use in applications: Any JSON parser can read it, and a JSON-LD processor turns it back into the same triples

Frequently Asked Questions

Why convert RDF Turtle to JSON?

Most web code, APIs and data tools speak JSON, not RDF. Turning Turtle into JSON-LD lets a JavaScript or Python program read linked data with an ordinary JSON parser, while a JSON-LD processor can still turn it back into exactly the same triples.

What does the JSON look like?

Each subject becomes one object with "@id", and rdf:type becomes "@type". Predicates are written as full IRIs (prefixes are expanded, no @context is added). Plain strings stay strings, small whole numbers and true/false stay JSON numbers and booleans, IRIs are written as {"@id": …}, a blank node used once is nested inside the object that uses it, and an RDF list ( … ) becomes {"@list": [ … ]}.

Are numbers, dates and language tags kept exactly?

Yes. A literal that a JSON number would change is written as a value object with its datatype, for example {"@value": "8901240544102066246", "@type": "…XMLSchema#integer"} or {"@value": "14.50", "@type": "…XMLSchema#decimal"}, so no digit is lost or re-spelled. Dates and custom datatypes keep their type the same way, and "Hola"@es becomes {"@value": "Hola", "@language": "es"}.

Which RDF syntaxes does it read?

Turtle, plus N-Triples, N-Quads and TriG, which N3.js reads with the same parser. Named graphs from TriG or N-Quads are written as {"@id": …, "@graph": [ … ]} entries. Quoted triples from RDF-star (<< … >>) and Notation3 rules have no JSON-LD form, so they are reported instead of converted. RDF/XML is not read here; the RDF Format Converter can turn it into Turtle first.

Can I convert back to Turtle?

Yes. The output is JSON-LD, so the JSON-LD to RDF Turtle converter (or any JSON-LD processor) reads it back as the same triples. Blank node labels may change, because they are only local names.

Is my data uploaded anywhere?

No. The Turtle is parsed and converted in your browser and isn't sent to our server. Nothing is kept either: a reload starts with an empty editor. For dumps of hundreds of megabytes, a command-line tool such as Apache Jena's riot will be quicker than a browser tab.

Related pages: the JSON to RDF Turtle converter, the JSON-LD to RDF Turtle converter, the RDF Format Converter and the RDF validator. The Turtle specification and JSON-LD 1.1 describe both formats.