---
title: "How to open a .jsonl.zst file on macOS, Windows and Linux"
description: "Look inside a webatla .jsonl.zst file without unpacking it: see the first rows, list the fields and count the rows with DuckDB on macOS, Windows or Linux."
url: https://webatla.com/guidelines/open-jsonl-zst
---

Step 3 of 5

# Open a .jsonl.zst file

You do not need to unpack a .jsonl.zst file to look inside. DuckDB reads it as it is, so these commands work the same on a 2 MB slice and on a 40 GB full file.

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.

## See the first rows

macOS and Linux, Terminal

```
duckdb <<'SQL'
SELECT Domain, TLD, "Country by IP", "HTTP status"
FROM read_json('all-data-2026-11-25.jsonl.zst')
LIMIT 5;
SQL
```

Windows, PowerShell

```
@'
SELECT Domain, TLD, "Country by IP", "HTTP status"
FROM read_json('all-data-2026-11-25.jsonl.zst')
LIMIT 5;
'@ | duckdb
```

Output on the free 10K sample

```
┌──────────────────┬─────────┬───────────────┬─────────────┐
│      Domain      │   TLD   │ Country by IP │ HTTP status │
│     varchar      │ varchar │    varchar    │   int128    │
├──────────────────┼─────────┼───────────────┼─────────────┤
│ 360.0.bg         │ bg      │ BG            │         200 │
│ digsys.0.bg      │ bg      │ BG            │         200 │
│ dnssec.0.bg      │ bg      │ NULL          │           0 │
│ doktoranti5.0.bg │ bg      │ BG            │         200 │
│ dvn.0.bg         │ bg      │ US            │         301 │
└──────────────────┴─────────┴───────────────┴─────────────┘
```

`LIMIT 5` stops after five rows, so this is instant even on the biggest file. `NULL` means the field has no value for that domain. Field names with spaces go in double quotes.

## See every field of one domain

macOS and Linux, Terminal

```
duckdb <<'SQL'
.mode line
SELECT * FROM read_json('websites-ranking-2026-11-25.jsonl.zst') LIMIT 1;
SQL
```

Windows, PowerShell

```
@'
.mode line
SELECT * FROM read_json('websites-ranking-2026-11-25.jsonl.zst') LIMIT 1;
'@ | duckdb
```

Output on the free 10K sample

```
Domain = 360.0.bg
            TLD suffix = 0.bg
                   TLD = bg
           Domain type = ICANN
         Country by IP = BG
              PR value = 4.6075899007952884e-09
        Harmonic value = 10632731.0
  Domain creation date = NULL
Domain expiration date = NULL
```

`.mode line` prints one field per line, which is easier to read than a wide table.

## List the fields

macOS and Linux, Terminal

```
duckdb <<'SQL'
SELECT column_name AS field
FROM (DESCRIBE SELECT * FROM read_json('all-data-2026-11-25.jsonl.zst'));
SQL
```

Windows, PowerShell

```
@'
SELECT column_name AS field
FROM (DESCRIBE SELECT * FROM read_json('all-data-2026-11-25.jsonl.zst'));
'@ | duckdb
```

Output on the free 10K sample

```
┌────────────────────────────────┐
│             field              │
│            varchar             │
├────────────────────────────────┤
│ 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                      │
└────────────────────────────────┘
             18 rows
```

Each dataset has its own set of fields. What each one means, with examples, is in the [API reference](https://webatla.com/api-docs).

## Count the rows

macOS and Linux, Terminal

```
duckdb <<'SQL'
SELECT count(*) AS rows
FROM read_json('all-data-2026-11-25.jsonl.zst', columns = {Domain: 'VARCHAR'});
SQL
```

Windows, PowerShell

```
@'
SELECT count(*) AS rows
FROM read_json('all-data-2026-11-25.jsonl.zst', columns = {Domain: 'VARCHAR'});
'@ | duckdb
```

Output on the free 10K sample

```
┌───────┐
│ rows  │
│ int64 │
├───────┤
│ 10000 │
└───────┘
```

On the full All data file of 24 Nov 2026 it printed **426,996,830** after about 9 minutes.

This reads the whole file. For a full file the number matches Domains for your dataset in the [table on the Guidelines page](https://webatla.com/guidelines#gl-files-h), so it also tells you the download is complete. A slice takes seconds, a full file from one to about ten minutes.

## Fields that hold lists

Four fields hold more than one value:

- **Technologies** names the technologies found on the site. Usually it is an object with the technology names as keys and the versions inside, sometimes a plain list of names.

- **DNS records** is an object with one entry per record type: `A`, `MX`, `NS`, `TXT` and others.

- **Social networks** is an object with the network as key and the profile links as a list.

- **RDAP/WHOIS Record**, in the RDAP & WHOIS file, is the registry's full answer as one object.

To get the technology names whatever the shape, use this `CASE` expression. The examples in the next guides use it every time they filter by technology.

macOS and Linux, Terminal

```
duckdb <<'SQL'
SELECT Domain,
  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'})
LIMIT 3;
SQL
```

Windows, PowerShell

```
@'
SELECT Domain,
  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'})
LIMIT 3;
'@ | duckdb
```

Output on the free 10K sample

```
┌──────────────────┬──────────────────────────────────────────────────────────────────────────────────────────┐
│      Domain      │                                       technologies                                       │
│     varchar      │                                        varchar[]                                         │
├──────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│ 360.0.bg         │ [HTTP/2, Favicon, Apache HTTP Server]                                                    │
│ digsys.0.bg      │ [PHP, Perl, UNIX, jQuery, Favicon, mod_perl, SWFObject, Adobe Flash, Apache HTTP Server] │
│ doktoranti5.0.bg │ [HTTP/2, Favicon, Apache HTTP Server]                                                    │
└──────────────────┴──────────────────────────────────────────────────────────────────────────────────────────┘
```

## Do you need to unpack it?

Almost never. Unpacked, the files are 12 to 20 times bigger: All data grows from 39.5 GB to about 500 GB. Every tool in these guides reads the compressed file as it is.

If another program insists on a plain `.jsonl` file:

- **Windows:** with [7-Zip](https://www.7-zip.org) 24.01 or newer, right-click the file (on Windows 11, then Show more options), choose 7-Zip, then Extract Here.

- **macOS and Linux:** use zstd. Most Linux systems already have it, on a Mac it comes with Homebrew (`brew install zstd`).

macOS and Linux, Terminal

```
zstd -d all-data-2026-11-25.jsonl.zst
```

Output on the free 10K sample

```
all-data-2026-11-25.jsonl.zst: 12142372 bytes
```

The free 10,000-row sample is already plain JSON Lines. DuckDB opens it the same way: `read_json('webatla-all-data-preview-10k.jsonl')`.

## 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: [convert it to CSV or Excel](https://webatla.com/guidelines/convert-to-csv).
