Want to parse RDF Turtle file and save to CSV file?
Try Data File Converter, a TTL to CSV converter for Windows, Mac, and Linux, Convert RDF Turtle file (.ttl, .n3) to CSV, Easy and Fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Convert files locally and privately, avoid uploading large TTL file(s) to online services.
Download Withdata DataFileConverter
Convert RDF Turtle file (.ttl, .n3) to CSV file
Choose RDF TTL file -> Set CSV options -> Convert RDF TTL to CSV
Click “Start a New Convert”.

then show the wizard.
Select source/target file type.

1. Open a RDF Turtle file.

2. Config target CSV file.

3. Set rows options.

4. Convert RDF TTL to CSV.

See CSV file

Convert TTL to CSV in command line
Save “TTL to CSV” session, then you can:
- Convert TTL to CSV in Windows command line.
- Convert TTL to CSV in Linux command line.
- Convert TTL to CSV in macOS command line.
Set scheduled tasks for converting TTL to CSV
You can schedule and automate this “TTL to CSV” conversion task by:
- Save session and create .bat (Windows) or .sh (Linux/macOS) file for “TTL to CSV” conversion.
- Set scheduled task for “TTL to CSV” conversion.
How RDF maps to CSV
RDF is not a table — it is a graph written as triples (subject – predicate – object). Exporting it to CSV means deciding how the graph becomes rows and columns. Data File Converter does that for you:
| In the RDF file | In the CSV file |
|---|---|
| Subject (an IRI or a blank node) | one row |
Predicate (an IRI such as foaf:name) |
one column, named after the last part of the IRI |
| Object (IRI, literal, or blank node) | the cell value for that row and column |
rdf:type |
a Type column |
| Several values for one predicate | merged into one cell, or split into several rows |
Typed literal ("1234"^^xsd:int, "2026-09-18"^^xsd:date) |
a number / date cell when the target supports it, otherwise text |
Language-tagged literal ("Hello"@en) |
text cell (the language tag is dropped) |
Long IRIs are shortened to readable column names, and when the source is Turtle, N-Triples or N-Quads, prefixes and @base are resolved first — so a foaf: prefix and the full http://xmlns.com/foaf/0.1/ property land in the same column.
And for converting other RDF formats to CSV: RDF/XML(.rdf, .owl), N-Triples(.nt, .ntriples), N-Quads(.nq, .nquads).
Need to convert between RDF formats (Turtle, RDF/XML, N-Triples, N-Quads, JSON-LD) instead of to a table? See RDFConverter (coming soon).
FAQ
More about Withdata DataFileConverter – TTL to CSV converter
TTL → CSV reference
Type mapping
| Value kind | in TTL | in CSV |
|---|---|---|
| Int | "1234"^^xsd:int | 1234 |
| Bigint | "9007199254740993"^^xsd:long | 9007199254740993 |
| Decimal | "1234.56"^^xsd:decimal | 1234.56 |
| Float | "1.234e10"^^xsd:double | 1.234e+10 |
| Text | "text" (plain literal) | quoted only when it contains a comma or a quote |
| Long text | "multi-line\ntext" (escape sequences, not raw newlines) | must be quoted; line breaks inside force multi-line records |
| Date | "2026-09-18"^^xsd:date | 2026-09-18 |
| Datetime | "2026-09-18T14:30:00Z"^^xsd:dateTime | 2026-09-18 14:30:00 |
| Binary | "base64..."^^xsd:base64Binary | not representable - base64 or hex string |
| Boolean | "true"^^xsd:boolean | TRUE / FALSE, or 1 / 0 depending on the writer |
| JSON | a literal, or its own sub-graph | the whole JSON value quoted, with internal quotes doubled |
Dialect differences
Both TTL and CSV are file formats, so what differs below is how each one chooses to represent a value.
| Property | in TTL | in CSV |
|---|---|---|
| identifiers | Quotes for literals, <angle brackets> for IRIs | Double quotes; a literal quote is doubled ("" ) |
| dates | xsd:dateTime typed literals | Conventional text: 2026-09-18 or 2026-09-18 14:30:00 |
| binary | base64 inside a typed literal | Not supported |
| separator | Dots end statements; semicolons and commas abbreviate | Comma "," |
| encoding | UTF-8 by convention | No declaration - UTF-8 works only with a BOM |
| typing | Resources and typed literals (^^xsd:...) | None - every field is text |
| shape | Graph of triples, grouped by subject with prefixed names | Flat table, optional header row |
| ceiling | Whole document is usually parsed into memory | No formal limit; row count bounded by memory |
Do it online, free
Skip the manual work — convert RDF to CSV online, free (runs in your browser, nothing is uploaded). For large files or batch jobs, use the desktop apps.
New to the format? Read what an RDF file is (and how it maps to rows and columns).
