Which Database Formats Does IPGeolocation.io Offer?

Abdullah Afzal
By Abdullah Afzal Database Engineer
Posted on October 22, 2026 | 6 min read
Which Database Formats Does IPGeolocation.io Offer?
Back to Help Center

The default IPGeolocation.io database formats are CSV and MMDB for the lookup databases and Gzip-compressed NDJSON for the IP WHOIS and ASN WHOIS databases. JSON, Parquet, or a custom format is available on request at no extra cost, and every release arrives as a ZIP archive with a README and SHA-256 checksums.


Formats by database

The table lists the data files inside each archive, and each database name links to its documentation page with the full schema.

DatabaseDefault FormatsFiles In The CSV EditionFile In The MMDB Edition
IP to CountryCSV, MMDBdb-ip-country.csv.gz, db-country.csv.gz, db-place.csv.gzdb-ip-country.mmdb
IP to City (Geo Standard)CSV, MMDBdb-ip-location.csv.gz, db-country.csv.gz, db-place.csv.gzdb-ip-location.mmdb
IP to Location (Geo Advanced)CSV, MMDBdb-ip-location.csv.gz, db-country.csv.gz, db-place.csv.gzdb-ip-location.mmdb
IP SecurityCSV, MMDBdb-ip-security.csv.gzdb-ip-security.mmdb
IP to HostingCSV, MMDBdb-ip-hosting.csv.gzdb-ip-hosting.mmdb
Residential ProxyCSV, MMDBdb-residential-proxy.csv.gzdb-residential-proxy.mmdb
IP to ASN (Lite) and IP to ASN (Extended)CSV, MMDBdb-ip-asn.csv.gz, db-asn-details.csv.gzdb-ip-asn.mmdb
IP to CompanyCSV, MMDBdb-ip-company.csv.gz, db-company-details.csv.gzdb-ip-company.mmdb
IP Abuse ContactCSV, MMDBdb-ip-abuse.csv.gz, db-abuse-details.csv.gzdb-ip-abuse.mmdb

The IP WHOIS and ASN WHOIS databases ship in one default format, Gzip-compressed NDJSON:

DatabaseDefault FormatFile In The ArchiveCSVMMDB
IP WHOISGzip-compressed NDJSONdb-ip-whois.json.gzOn requestOn request
ASN WHOISGzip-compressed NDJSONdb-asn-whois.json.gzOn requestNot available

Every archive, whatever the format, holds a README.md and a checksum.txt with a SHA-256 hash for each file, and each release comes with a matching signature file that you check against the IPGeolocation.io public key, following the verification steps on each database's documentation page.


Which format fits your workload

Choose a format by how you'll use the data:

  • Lookups inside an application or service: MMDB. It answers one address at a time from a local file, with no joins.
  • Joins in SQL or a data warehouse: CSV, or Parquet on request for columnar warehouses.
  • WHOIS investigations and bulk parsing: NDJSON, streamed line by line.

Each of these assumes you host the files yourself. Whether to host them at all, or call an API for each lookup instead, is a separate decision, and choosing between an IP geolocation API and a database walks through it.


What's inside the CSV archive

A CSV download is a ZIP archive of Gzip-compressed CSV files (.csv.gz), plus README.md and checksum.txt. Every CSV file is UTF-8, comma-separated, and starts with a header row. Quoting follows the convention in RFC 4180, and some values, such as language lists, contain commas of their own, so read the files with a standard CSV parser or database loader rather than splitting lines on commas.

The location, ASN, company, and abuse contact archives are relational. In the location archive, db-ip-location.csv.gz holds the IP ranges with a country_id and place IDs for state, district, and city; db-country.csv.gz holds one row per country; and db-place.csv.gz holds every place name in 12 languages, keyed by ID. The ASN, company, and abuse contact archives each pair a range file with a details file. The security, hosting, and residential proxy archives each hold a single data file that keeps its attributes on every range, so there's nothing to join.

Diagram of IPGeolocation.io CSV archives: location, ASN, company, and abuse contact files join detail files by ID

1. Why the CSV files are split and linked by ID

At IPGeolocation.io, we split the relational archives to cut duplication. In one flat file, many rows would repeat the same country and place data and differ only in start_ip and end_ip, so storing each name once keeps the archive smaller. The cost of the split is a join on ID when you look up an address, and the MMDB edition does that join for you when the file is built.


What's inside the MMDB archive

An MMDB download is a ZIP archive with a single .mmdb file, plus README.md and checksum.txt. MMDB is a binary file format built for IP lookups: it maps IP ranges to records and stores them in a search tree, so a reader finds the record for an address by walking the bits of that address instead of scanning the file.

Where the CSV edition keeps IDs that you join, the MMDB edition stores each range's full record. One lookup returns the whole record, with no joins and no database server.

The same IPGeolocation.io IP range as a CSV row with ID columns and as a nested MMDB record with names

MMDB is binary, so you read it through a reader library in your application, or without writing code using the mmdbio command-line tool. To join MMDB data onto logs with plain SQL, you can query MMDB files with SQL in DuckDB.


Why the WHOIS databases ship as NDJSON

IPGeolocation.io ships its IP WHOIS and ASN WHOIS databases as NDJSON because their records are nested. NDJSON (newline-delimited JSON) is a text format with one complete JSON record per line, encoded in UTF-8. A WHOIS record carries an organization plus lists of abuse, admin, technical, and incident-response contacts, and the original registry response, which would take several linked tables in CSV.

The archive holds one Gzip-compressed file, db-ip-whois.json.gz or db-asn-whois.json.gz, with the organization and contacts embedded in each record, so there are no joins. Despite the .json.gz extension, the file isn't one JSON document: parse each line as its own record rather than loading the file as a single array. Because each line stands alone, you can stream the file and never hold it all in memory. Every field is present in every record, but the organization, contact, BGP, and date fields are null when the registry has no data for them, so check before reading them.


JSON, Parquet, and other formats on request

We deliver any IPGeolocation.io database as JSON, Parquet, or a custom format on request, at no extra cost, with the same stable schemas and changelogs. After CSV and MMDB, JSON and Parquet are the formats customers request most. Parquet suits teams that load data into a warehouse or a data lake, and JSON suits pipelines that already parse JSON everywhere else.

Beyond the format, you can change what the files hold: a custom build lets you mix fields across databases and choose the schema, transforms, update cadence, delivery, and format. The custom build itself costs nothing extra; your subscription price still depends on the databases and the update cadence you pick. For a custom build or a format on request, contact us through our contact form.


Samples, bundles, and custom builds

IPGeolocation.io maintains its data continuously and delivers updated files on your subscription’s update cadence. The databases cover IP geolocation with time zone, security risk signals such as VPN, proxy, Tor, and bot detection with a threat score, and ASN, company, abuse contact, and WHOIS data.

To move forward:

  1. Download a free sample from the tier page that holds your database: Geo Standard databases, Geo Advanced databases, or Security Pro databases.
  2. Check the schema on the database's documentation page, linked from the tables above.
  3. Request a quote for one database, a ready-made bundle, or a custom build, and name the format you need.

FAQ

Yes, as Gzip-compressed CSV files with a header row. IPGeolocation.io ships every lookup database in both CSV and MMDB; only the IP WHOIS and ASN WHOIS databases default to NDJSON.

As CSV, yes for both, on request and at no extra cost. As MMDB, only IP WHOIS: IPGeolocation.io can prepare it on request, but ASN WHOIS has no MMDB edition, because an MMDB file looks records up by IP address and ASN WHOIS records are keyed by AS number.

Yes. In IPGeolocation.io's IP-range databases, IPv4 and IPv6 ranges sit in the same file, and the MMDB editions answer lookups for both.

Use the mmdbio command-line tool from IPGeolocation.io. It reads any MMDB file: it looks up addresses, shows the schema, exports records to JSON, and validates a file before you deploy it.

Not as a full download: IPGeolocation.io databases are subscriptions priced by quote. You can test the data with the free sample files on each database's product page, or through the free trials on our Snowflake Marketplace listings, which cover six of the databases.

Yes. IPGeolocation.io builds each MMDB file from the same CSV data, so both editions hold the same records. Only the structure differs: where the CSV edition splits data into files linked by ID, the MMDB edition returns those details already joined in one record.

Related Help Articles

How Do I Contact IPGeolocation.io?
How Do I Contact IPGeolocation.io?

Reach IPGeolocation.io by live chat, answered by people 24/7, by email at support@ipgeolocation.io, or by phone. Here is where each question goes and what to include.

Posted on November 24, 2026
By Abdul Mateen
Read More: How Do I Contact IPGeolocation.io?
Does IPGeolocation.io Have Rate Limits?
Does IPGeolocation.io Have Rate Limits?

IPGeolocation.io doesn't throttle requests per second or per minute; it limits usage by credits. See the common causes of HTTP 429, what overage costs, and how to get lookups running again.

Posted on November 22, 2026
By Abdul Mateen
Read More: Does IPGeolocation.io Have Rate Limits?
Why Are My API Credits Rising Faster Than My Website Visitors?
Why Are My API Credits Rising Faster Than My Website Visitors?

When your IPGeolocation.io credits climb faster than your visitors, check both how many lookups your site makes and what each one costs. Here is how to find the cause and what to fix first.

Posted on November 20, 2026
Read More: Why Are My API Credits Rising Faster Than My Website Visitors?
Does IPGeolocation.io Cover Every IPv4 and IPv6 Address?
Does IPGeolocation.io Cover Every IPv4 and IPv6 Address?

IPGeolocation.io covers every IPv4 address, with the special-purpose ranges marked as bogons, and every IPv6 block IANA has allocated to the registries, announced or not. Here is what that means in numbers, how coverage differs by data type, and what the API returns for bogons.

Posted on November 18, 2026
Read More: Does IPGeolocation.io Cover Every IPv4 and IPv6 Address?
What Uptime SLA Does IPGeolocation.io Offer?
What Uptime SLA Does IPGeolocation.io Offer?

See what 99.99% allows in minutes, how we measure it, how to tell an outage from a key or quota error, and how to keep the remaining downtime away from your users.

Posted on November 17, 2026
Read More: What Uptime SLA Does IPGeolocation.io Offer?
Why Is My IP Location Wrong, and How Do I Report It?
Why Is My IP Location Wrong, and How Do I Report It?

A VPN, iCloud Private Relay, a mobile carrier gateway, or an IP block your ISP moved can all put you in the wrong place. Find which one it is, then fix the setting or report the location to IPGeolocation.io.

Posted on November 15, 2026
By Abdul Mateen
Read More: Why Is My IP Location Wrong, and How Do I Report It?

Subscribe to Our Newsletter

Get the latest in geolocation tech, straight to your inbox.