Skip to main content

IP to ASN database Free download

Our free IP to ASN database maps IP address ranges to their Autonomous System Number (ASN), along with the organization that owns the ASN. It's ideal for understanding network ownership and traffic sources. Like our other free databases, it is updated daily.

Data fields

The IP to ASN database includes the following data fields for each IP network range.

AttributeDescriptionExample
networkThe IP address range in CIDR notation.104.23.0.0/19
asnThe Autonomous System Number.132892
country_codeThe two-letter ISO 3166-1 alpha-2 country code where the ASN is registered.US
nameThe short name of the ASN.CLOUDFLARE
orgThe name of the organization that owns the ASN.Cloudflare, Inc.
domainThe domain name of the organization.cloudflare.com

Example

Look up an IP address using the MMDB database

Here's how to perform a local lookup using our MMDB database file with Node.js.

get_asn_from_ip_address.js
import fs from 'fs';
import * as mmdb from 'mmdb-lib'; // npm install mmdb-lib

const db = fs.readFileSync('/path/to/ip-to-asn.mmdb');

const reader = new mmdb.Reader(db);
console.log(reader.get('104.23.1.8'));
// {
// asn: 132892,
// country_code: 'US',
// name: 'CLOUDFLARE',
// org: 'Cloudflare, Inc.',
// domain: 'cloudflare.com',
// network: '104.23.0.0/19'
// }