---
title: "Convert a .jsonl.zst dataset to CSV or Excel"
description: "Turn a webatla .jsonl.zst file into CSV or an Excel .xlsx file on macOS, Windows or Linux: pick columns, keep technologies readable, split big lists under the Excel row limit."
url: https://webatla.com/guidelines/convert-to-csv
---

Step 4 of 5

# Convert a dataset to CSV or Excel

Name the columns you want and DuckDB writes them to a CSV or an Excel file in one step. Lists too long for Excel get split into parts that fit.

Before you start

- [DuckDB](https://webatla.com/guidelines/get-started#install) 2.0 or later is installed.

- You have a dataset file: one you [downloaded](https://webatla.com/guidelines/download-datasets), or the free 10,000-row sample in your account. The outputs on these pages come from those samples. With a sample, put its whole name, like `webatla-technologies-preview-10k.jsonl`, in place of the file name.

- The terminal (PowerShell on Windows) is open [in the folder with the file](https://webatla.com/guidelines/get-started#folder). This prints the names of the files DuckDB sees there, so you can copy yours:

Any system

```
duckdb -c "SELECT file FROM glob('*.jsonl*')"
```

Output in a folder with one downloaded file

```
┌───────────────────────────────┐
│             file              │
│            varchar            │
├───────────────────────────────┤
│ all-data-2026-11-25.jsonl.zst │
└───────────────────────────────┘
```

In the examples, the parts to change are the date in the file name and the values you filter by. A command that writes a file prints nothing in the terminal, and the file appears in the same folder. Under some examples you also see what the same command gave on a full file and how long it took on a laptop reading the file from a USB disk.

## CSV with the columns you need

macOS and Linux, Terminal

```
duckdb <<'SQL'
COPY (
  SELECT Domain, "IP address", "Country by IP", "HTTP status"
  FROM read_json('all-data-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR', "IP address": 'VARCHAR',
    "Country by IP": 'VARCHAR', "HTTP status": 'INTEGER'})
) TO 'all-data.csv';
SQL
```

Windows, PowerShell

```
@'
COPY (
  SELECT Domain, "IP address", "Country by IP", "HTTP status"
  FROM read_json('all-data-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR', "IP address": 'VARCHAR',
    "Country by IP": 'VARCHAR', "HTTP status": 'INTEGER'})
) TO 'all-data.csv';
'@ | duckdb
```

all-data.csv, first 3 of 10,000 rows on the free sample

```
Domain,IP address,Country by IP,HTTP status
360.0.bg,31.13.236.27,BG,200
digsys.0.bg,193.68.21.117,BG,200
dnssec.0.bg,,,0
```

On the full All data file of 24 Nov 2026: **426,996,830 rows**, written in about 12 minutes. That is more rows than one Excel sheet holds.

- `SELECT` lists the columns you want, in the order you want them.

- `columns = {…}` tells DuckDB which fields to read and what they hold: `'VARCHAR'` for text, `'INTEGER'` or `'DOUBLE'` for numbers, `'JSON'` for fields with lists. Naming them keeps DuckDB from guessing, which matters on a file with hundreds of millions of rows.

- A full file makes a CSV with hundreds of millions of rows. For a smaller list, filter first (see [Extract the data you need](https://webatla.com/guidelines/extract-data)) or start from a slice.

## Every column of a dataset

Fields with lists, like Technologies or DNS records, go into the CSV as JSON text. Pick your dataset:

All active domains

macOS and Linux, Terminal

```
duckdb <<'SQL'
COPY (
  SELECT * FROM read_json('all-active-domains-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR'
  })
) TO 'all-active-domains.csv';
SQL
```

Windows, PowerShell

```
@'
COPY (
  SELECT * FROM read_json('all-active-domains-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR'
  })
) TO 'all-active-domains.csv';
'@ | duckdb
```

First line of all-active-domains.csv

```
Domain,TLD suffix,TLD,Domain type
```

Websites + Ranking

macOS and Linux, Terminal

```
duckdb <<'SQL'
COPY (
  SELECT * FROM read_json('websites-ranking-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR',
    "Country by IP": 'VARCHAR',
    "PR value": 'VARCHAR',
    "Harmonic value": 'VARCHAR',
    "Domain creation date": 'VARCHAR',
    "Domain expiration date": 'VARCHAR'
  })
) TO 'websites-ranking.csv';
SQL
```

Windows, PowerShell

```
@'
COPY (
  SELECT * FROM read_json('websites-ranking-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR',
    "Country by IP": 'VARCHAR',
    "PR value": 'VARCHAR',
    "Harmonic value": 'VARCHAR',
    "Domain creation date": 'VARCHAR',
    "Domain expiration date": 'VARCHAR'
  })
) TO 'websites-ranking.csv';
'@ | duckdb
```

First line of websites-ranking.csv

```
Domain,TLD suffix,TLD,Domain type,Country by IP,PR value,Harmonic value,Domain creation date,Domain expiration date
```

Technologies

macOS and Linux, Terminal

```
duckdb <<'SQL'
COPY (
  SELECT * FROM read_json('technologies-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR',
    "HTTP status": 'VARCHAR',
    "IP address": 'VARCHAR',
    "Country by IP": 'VARCHAR',
    "Social networks": 'JSON',
    "Technologies last data checked": 'VARCHAR',
    Technologies: 'JSON',
    "PR value": 'VARCHAR',
    "Harmonic value": 'VARCHAR',
    "Domain creation date": 'VARCHAR',
    "Domain expiration date": 'VARCHAR'
  })
) TO 'technologies.csv';
SQL
```

Windows, PowerShell

```
@'
COPY (
  SELECT * FROM read_json('technologies-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR',
    "HTTP status": 'VARCHAR',
    "IP address": 'VARCHAR',
    "Country by IP": 'VARCHAR',
    "Social networks": 'JSON',
    "Technologies last data checked": 'VARCHAR',
    Technologies: 'JSON',
    "PR value": 'VARCHAR',
    "Harmonic value": 'VARCHAR',
    "Domain creation date": 'VARCHAR',
    "Domain expiration date": 'VARCHAR'
  })
) TO 'technologies.csv';
'@ | duckdb
```

First line of technologies.csv

```
Domain,TLD suffix,TLD,Domain type,HTTP status,IP address,Country by IP,Social networks,Technologies last data checked,Technologies,PR value,Harmonic value,Domain creation date,Domain expiration date
```

DNS

macOS and Linux, Terminal

```
duckdb <<'SQL'
COPY (
  SELECT * FROM read_json('dns-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR',
    "DNS last data checked": 'VARCHAR',
    "DNS Status": 'VARCHAR',
    "DNS records": 'JSON'
  })
) TO 'dns.csv';
SQL
```

Windows, PowerShell

```
@'
COPY (
  SELECT * FROM read_json('dns-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR',
    "DNS last data checked": 'VARCHAR',
    "DNS Status": 'VARCHAR',
    "DNS records": 'JSON'
  })
) TO 'dns.csv';
'@ | duckdb
```

First line of dns.csv

```
Domain,TLD suffix,TLD,Domain type,DNS last data checked,DNS Status,DNS records
```

RDAP & WHOIS

macOS and Linux, Terminal

```
duckdb <<'SQL'
COPY (
  SELECT * FROM read_json('rdap-whois-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "RDAP/WHOIS last date checked": 'VARCHAR',
    "RDAP/WHOIS method": 'VARCHAR',
    "Domain creation date": 'VARCHAR',
    "Domain expiration date": 'VARCHAR',
    "Domain last changed": 'VARCHAR',
    Registrar: 'VARCHAR',
    "Response Status RDAP/WHOIS": 'VARCHAR',
    "RDAP/WHOIS Record": 'JSON'
  })
) TO 'rdap-whois.csv';
SQL
```

Windows, PowerShell

```
@'
COPY (
  SELECT * FROM read_json('rdap-whois-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "RDAP/WHOIS last date checked": 'VARCHAR',
    "RDAP/WHOIS method": 'VARCHAR',
    "Domain creation date": 'VARCHAR',
    "Domain expiration date": 'VARCHAR',
    "Domain last changed": 'VARCHAR',
    Registrar: 'VARCHAR',
    "Response Status RDAP/WHOIS": 'VARCHAR',
    "RDAP/WHOIS Record": 'JSON'
  })
) TO 'rdap-whois.csv';
'@ | duckdb
```

First line of rdap-whois.csv

```
Domain,TLD suffix,TLD,RDAP/WHOIS last date checked,RDAP/WHOIS method,Domain creation date,Domain expiration date,Domain last changed,Registrar,Response Status RDAP/WHOIS,RDAP/WHOIS Record
```

All data

macOS and Linux, Terminal

```
duckdb <<'SQL'
COPY (
  SELECT * FROM read_json('all-data-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR',
    "HTTP status": 'VARCHAR',
    "IP address": 'VARCHAR',
    "Country by IP": 'VARCHAR',
    "Social networks": 'JSON',
    "Technologies last data checked": 'VARCHAR',
    Technologies: 'JSON',
    "DNS last data checked": 'VARCHAR',
    "DNS Status": 'VARCHAR',
    "DNS records": 'JSON',
    "PR value": 'VARCHAR',
    "Harmonic value": 'VARCHAR',
    "Domain creation date": 'VARCHAR',
    "Domain expiration date": 'VARCHAR',
    Registrar: 'VARCHAR'
  })
) TO 'all-data.csv';
SQL
```

Windows, PowerShell

```
@'
COPY (
  SELECT * FROM read_json('all-data-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR',
    "HTTP status": 'VARCHAR',
    "IP address": 'VARCHAR',
    "Country by IP": 'VARCHAR',
    "Social networks": 'JSON',
    "Technologies last data checked": 'VARCHAR',
    Technologies: 'JSON',
    "DNS last data checked": 'VARCHAR',
    "DNS Status": 'VARCHAR',
    "DNS records": 'JSON',
    "PR value": 'VARCHAR',
    "Harmonic value": 'VARCHAR',
    "Domain creation date": 'VARCHAR',
    "Domain expiration date": 'VARCHAR',
    Registrar: 'VARCHAR'
  })
) TO 'all-data.csv';
'@ | duckdb
```

First line of all-data.csv

```
Domain,TLD suffix,TLD,Domain type,HTTP status,IP address,Country by IP,Social networks,Technologies last data checked,Technologies,DNS last data checked,DNS Status,DNS records,PR value,Harmonic value,Domain creation date,Domain expiration date,Registrar
```

Domain Investor

macOS and Linux, Terminal

```
duckdb <<'SQL'
COPY (
  SELECT * FROM read_json('domain-investor-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR',
    "HTTP status": 'VARCHAR',
    "IP address": 'VARCHAR',
    "Country by IP": 'VARCHAR',
    "Social networks": 'JSON',
    "Technologies last data checked": 'VARCHAR',
    Technologies: 'JSON',
    "DNS last data checked": 'VARCHAR',
    "DNS Status": 'VARCHAR',
    "DNS records": 'JSON',
    "PR value": 'VARCHAR',
    "Harmonic value": 'VARCHAR',
    "RDAP/WHOIS last data checked": 'VARCHAR',
    "RDAP/WHOIS method": 'VARCHAR',
    "Domain creation date": 'VARCHAR',
    "Domain expiration date": 'VARCHAR',
    "Domain last changed": 'VARCHAR',
    Registrar: 'VARCHAR'
  })
) TO 'domain-investor.csv';
SQL
```

Windows, PowerShell

```
@'
COPY (
  SELECT * FROM read_json('domain-investor-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR',
    "TLD suffix": 'VARCHAR',
    TLD: 'VARCHAR',
    "Domain type": 'VARCHAR',
    "HTTP status": 'VARCHAR',
    "IP address": 'VARCHAR',
    "Country by IP": 'VARCHAR',
    "Social networks": 'JSON',
    "Technologies last data checked": 'VARCHAR',
    Technologies: 'JSON',
    "DNS last data checked": 'VARCHAR',
    "DNS Status": 'VARCHAR',
    "DNS records": 'JSON',
    "PR value": 'VARCHAR',
    "Harmonic value": 'VARCHAR',
    "RDAP/WHOIS last data checked": 'VARCHAR',
    "RDAP/WHOIS method": 'VARCHAR',
    "Domain creation date": 'VARCHAR',
    "Domain expiration date": 'VARCHAR',
    "Domain last changed": 'VARCHAR',
    Registrar: 'VARCHAR'
  })
) TO 'domain-investor.csv';
'@ | duckdb
```

First line of domain-investor.csv

```
Domain,TLD suffix,TLD,Domain type,HTTP status,IP address,Country by IP,Social networks,Technologies last data checked,Technologies,DNS last data checked,DNS Status,DNS records,PR value,Harmonic value,RDAP/WHOIS last data checked,RDAP/WHOIS method,Domain creation date,Domain expiration date,Domain last changed,Registrar
```

## Technologies as a readable list

Instead of JSON, write the technology names of each site into one cell, sorted and separated by commas:

macOS and Linux, Terminal

```
duckdb <<'SQL'
COPY (
  SELECT Domain, array_to_string(list_sort(
    CASE json_type(Technologies)
      WHEN 'OBJECT' THEN json_keys(Technologies)
      WHEN 'ARRAY' THEN from_json(Technologies, '["VARCHAR"]')
    END), ', ') AS Technologies
  FROM read_json('technologies-2026-11-25.jsonl.zst',
    columns = {Domain: 'VARCHAR', Technologies: 'JSON'})
) TO 'technologies-list.csv';
SQL
```

Windows, PowerShell

```
@'
COPY (
  SELECT Domain, array_to_string(list_sort(
    CASE json_type(Technologies)
      WHEN 'OBJECT' THEN json_keys(Technologies)
      WHEN 'ARRAY' THEN from_json(Technologies, '["VARCHAR"]')
    END), ', ') AS Technologies
  FROM read_json('technologies-2026-11-25.jsonl.zst',
    columns = {Domain: 'VARCHAR', Technologies: 'JSON'})
) TO 'technologies-list.csv';
'@ | duckdb
```

technologies-list.csv, first 3 of 10,000 rows on the free sample

```
Domain,Technologies
360.0.bg,"Apache HTTP Server, Favicon, HTTP/2"
digsys.0.bg,"Adobe Flash, Apache HTTP Server, Favicon, PHP, Perl, SWFObject, UNIX, jQuery, mod_perl"
doktoranti5.0.bg,"Apache HTTP Server, Favicon, HTTP/2"
```

On the full Technologies file of 24 Nov 2026: **315,541,847 rows**, written in about 8 minutes. That is more rows than one Excel sheet holds.

## Straight to Excel

macOS and Linux, Terminal

```
duckdb <<'SQL'
INSTALL excel;
LOAD excel;
COPY (
  SELECT Domain, "Country by IP" AS Country, "HTTP status"
  FROM read_json('webatla-technologies-Webflow-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR', "Country by IP": 'VARCHAR', "HTTP status": 'INTEGER'})
) TO 'webflow.xlsx' (FORMAT xlsx, HEADER true);
SQL
```

Windows, PowerShell

```
@'
INSTALL excel;
LOAD excel;
COPY (
  SELECT Domain, "Country by IP" AS Country, "HTTP status"
  FROM read_json('webatla-technologies-Webflow-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR', "Country by IP": 'VARCHAR', "HTTP status": 'INTEGER'})
) TO 'webflow.xlsx' (FORMAT xlsx, HEADER true);
'@ | duckdb
```

Output on the free 10K sample

```
webflow.xlsx: 1 header row + 21 rows
```

- `INSTALL excel` downloads DuckDB's Excel extension the first time. Later runs use the saved copy.

- An Excel sheet holds at most 1,048,576 rows. If your result is bigger, DuckDB stops with `Sheet row limit of '1048576' rows exceeded` and writes nothing. Filter the data or split it as shown below.

- This example starts from the Webflow slice, which holds only Webflow sites. On the full file of 24 Nov 2026 it had 564,561 of them and fit on one sheet. The WordPress slice, with over 23 million, would not.

## Too big for Excel? Split it into parts

First find out how many rows your list has: [count them](https://webatla.com/guidelines/open-jsonl-zst#count), or look at the number under the examples in [Extract the data you need](https://webatla.com/guidelines/extract-data). Divide it by 1,000,000, round up and add one: that is how many parts you need. On the full file of 24 Nov 2026, Wix had 7,746,326 sites, so this example writes 9 parts:

macOS and Linux, Terminal

```
duckdb <<'SQL'
SET preserve_insertion_order = false;
COPY (
  SELECT Domain, "Country by IP" AS Country, hash(Domain) % 9 AS part
  FROM read_json('technologies-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR', "Country by IP": 'VARCHAR', Technologies: 'JSON'})
  WHERE list_contains(CASE json_type(Technologies)
      WHEN 'OBJECT' THEN json_keys(Technologies)
      WHEN 'ARRAY' THEN from_json(Technologies, '["VARCHAR"]')
    END, 'Wix')
) TO 'wix-parts' (FORMAT csv, PARTITION_BY (part));
SQL
```

Windows, PowerShell

```
@'
SET preserve_insertion_order = false;
COPY (
  SELECT Domain, "Country by IP" AS Country, hash(Domain) % 9 AS part
  FROM read_json('technologies-2026-11-25.jsonl.zst', columns = {
    Domain: 'VARCHAR', "Country by IP": 'VARCHAR', Technologies: 'JSON'})
  WHERE list_contains(CASE json_type(Technologies)
      WHEN 'OBJECT' THEN json_keys(Technologies)
      WHEN 'ARRAY' THEN from_json(Technologies, '["VARCHAR"]')
    END, 'Wix')
) TO 'wix-parts' (FORMAT csv, PARTITION_BY (part));
'@ | duckdb
```

Files written from the free sample (72 Wix sites)

```
wix-parts/part=0/data_0.csv   13 rows
wix-parts/part=1/data_0.csv   3 rows
wix-parts/part=2/data_0.csv   11 rows
wix-parts/part=3/data_0.csv   8 rows
wix-parts/part=4/data_0.csv   5 rows
wix-parts/part=5/data_0.csv   5 rows
wix-parts/part=6/data_0.csv   10 rows
wix-parts/part=7/data_0.csv   9 rows
wix-parts/part=8/data_0.csv   8 rows
```

On the full Technologies file of 24 Nov 2026: **7,746,326 rows** in 9 files of 859,502 to 862,912 rows each, written in about 3 minutes.

- Change `9` to your number of parts and the `WHERE` line to your list. `hash(Domain)` spreads the domains evenly, so every part gets about the same number of rows, and each part is a normal CSV with its own header row.

- The first line lets DuckDB write the rows in any order. On big lists that keeps it from running out of memory.

## Open the CSV in Excel

Double-clicking a CSV can garble letters outside English, for example registrar names in Chinese or Cyrillic. Import it instead:

- In Excel for Windows, open the **Data** tab and choose **From Text/CSV**.

- Pick the file.

- Set **File Origin** to **65001: Unicode (UTF-8)** and click **Load**.

In Excel for Mac use **File**, then **Import**, choose **CSV file** and set the file origin to **Unicode (UTF-8)**.

In Google Sheets use **File**, then **Import**. A Google spreadsheet holds up to 10 million cells, so a file with 10 columns fits about a million rows.

## If something does not work

| What you see | What it means | What to do |
| --- | --- | --- |
| `command not found: duckdb` `The term 'duckdb' is not recognized` | DuckDB is not installed, or this terminal window was open before the install. | [Install it](https://webatla.com/guidelines/get-started#install), then open a new terminal window. |
| `IO Error: No files found that match the pattern "all-data-2025-01-01.jsonl.zst"` | There is no file with that name in this folder. Usually the date in the name differs from your file's, or the terminal is in another folder. | Run the check from Before you start and copy the exact name. |
| `Binder Error: Referenced column "Country by IP" not found in FROM clause!` | The query uses a field that is not named in `columns = {…}`. | Add the field to `columns`. |
| `Binder Error: Referenced column "DE" not found in FROM clause!` | A value without quotes, so DuckDB reads it as a field name. | Put text values in single quotes, like `'DE'`. |
| `Parser Error: unterminated string literal` | A quote is missing. | Check that every `'` has a pair. |
| An empty file or 0 rows, and no error | A value that matches nothing: TLDs are in lowercase (`'ca'`), countries in capitals (`'DE'`), technologies exactly as on their page (`'WordPress'`). Or your file does not have a field the example reads, and… | Fix the value and run the command again, or check Works with under the example. |
| The terminal shows `heredoc>`, `>` or `>>` and waits | The last line of the block was not pasted, so the terminal waits for the rest. | Press Ctrl + C , then copy and paste the whole block again. |

Next: [extract the data you need](https://webatla.com/guidelines/extract-data).
