# 10 ASN Lookup Tools for OSINT: Find Who Owns an IP and How It Is Routed

Published 2026-11-26 · updated 2026-11-26 · https://osinttools.io/guides/asn-bgp-lookup-tools/

**TL;DR:** The 10 ASN lookup tools worth knowing for OSINT work.

- [Hurricane Electric BGP Toolkit](https://bgp.he.net): the standard first stop. IP to ASN, every announced prefix, peers and upstreams. Free, no account.
- [bgp.tools](https://bgp.tools): live routing from many collectors, RPKI status and network type tags such as hosting or bulletproof.
- [IPinfo](https://ipinfo.io): IP to ASN plus approximate location, hosting type and abuse contact. Free single lookups and a free API tier.
- [Robtex](https://www.robtex.com/): links IPs, domains, name servers, AS numbers and BGP routes, so you can see what else shares an address.
- [ARIN Whois/RDAP](https://search.arin.net/rdap/): the official registry record for North American IP blocks and ASNs, including reassignments to customers.
- [Team Cymru IP to ASN Mapping](https://www.team-cymru.com/ip-asn-mapping): free whois and DNS service that maps long lists of IPs to their ASN in one go.
- [asnmap](https://github.com/projectdiscovery/asnmap): ProjectDiscovery's CLI that turns an ASN, IP, domain or company name into CIDR ranges.
- [Metabigor](https://github.com/j3ssie/metabigor): open-source CLI that maps ranges, subdomains and open ports from free sources, with no API keys.
- [ASN Lookup Tool (nitefood/asn)](https://github.com/nitefood/asn): Bash script with AS, prefix, RPKI, BGP hijack, reputation and geolocation lookups in one command.
- [BGP Ranking](https://bgpranking.circl.lu/): CIRCL's score of how much malicious activity each AS hosts, relative to its size.

**Short answer:** To find the autonomous system (AS) behind an IP address, paste it into the Hurricane Electric BGP Toolkit or bgp.tools: both are free, need no account, and also list every prefix that AS announces. For hundreds of IPs, use Team Cymru's whois service from a terminal. To turn a company name into all of its IP ranges, use asnmap or Metabigor.

An ASN (autonomous system number) identifies a network that routes its own block of IP addresses on the internet. BGP is the protocol those networks use to announce their blocks to each other. Look up the ASN behind an IP and you learn who operates it, how big their network is, and which other address ranges belong to them.

The tools below fall into four groups: web lookups for one address at a time, registry and bulk services for scripts, command-line tools that map an organisation's ranges, and a reputation score for whole networks. All of them are passive by default: they read routing and registry data and send nothing to the target.

## Quick comparison

| Tool | Best for | Price | Interface |
|---|---|---|---|
| Hurricane Electric BGP Toolkit | IP to ASN, prefixes, peers | Free | Web |
| bgp.tools | Cross-check, RPKI, network type tags | Freemium | Web, API |
| IPinfo | ASN plus location and hosting type | Freemium | Web, API, CLI |
| Robtex | Shared hosting and DNS pivots | Free | Web, API |
| ARIN Whois/RDAP | Registered holder of a block | Free | Web, API |
| Team Cymru IP to ASN | Bulk IP to ASN from scripts | Free | whois, DNS |
| asnmap | Company or ASN to CIDR ranges | Open source | CLI |
| Metabigor | Ranges plus ports, no API keys | Open source | CLI |
| ASN Lookup Tool | Full network context in one command | Open source | CLI, web server |
| BGP Ranking | Abuse history of a network | Free | Web, API |

## 1. Hurricane Electric BGP Toolkit

Site: https://bgp.he.net · Listing: https://osinttools.io/tools/he-bgp-toolkit/

Paste an IP, prefix, ASN or company name and the toolkit shows which AS announces it, that AS's peers and upstreams, all of its announced IPv4 and IPv6 prefixes, and its IRR and WHOIS records. Searching a company name often turns up ASNs you did not know it had.

Our [Hurricane Electric BGP Toolkit](https://osinttools.io/tools/he-bgp-toolkit/) listing sums up what it shows and where its data comes from.

**Drawback:** There is no documented API, so it is a manual tool. The routing view is from HE's own vantage point and can differ from what other collectors see.

## 2. bgp.tools

Site: https://bgp.tools · Listing: https://osinttools.io/tools/bgp-tools/

bgp.tools builds its view from many route collectors, so it is the best cross-check on HE. Beyond origin AS, upstreams and prefixes, it shows RPKI status, IX presence and tags each network by type: hosting, eyeball (consumer ISP) or bulletproof hosting. That last tag is often the most useful line on the page in an abuse investigation.

**Drawback:** It is about routing, so it says little about the hosts themselves. Lookups are free; monitoring and alerts are paid, and bulk data access comes with usage rules.

## 3. IPinfo

Site: https://ipinfo.io · Listing: https://osinttools.io/tools/ipinfo/

IPinfo answers the question that usually comes right after "which ASN?": what kind of address is this? A single lookup gives the ASN and network owner, approximate location, whether it is an ISP or hosting range, and an abuse contact. Its ASN pages list prefixes and ranges too. The clean API makes it a common choice for enriching logs.

**Drawback:** Geolocation is approximate, like all IP data. VPN, proxy and Tor detection, company data and hosted domains are on paid tiers.

## 4. Robtex

Site: https://www.robtex.com/ · Listing: https://osinttools.io/tools/robtex/

Robtex is older and busier than the rest, but it connects things the routing sites do not. For an IP or domain it shows DNS records, reverse DNS, WHOIS, the hosting AS and BGP prefixes, and which other names share the same addresses or name servers. That shared-hosting view is a quick way to find sister sites.

**Drawback:** The interface takes time to learn. Some views and heavier API use need an account, and data freshness varies by record type.

## 5. ARIN Whois/RDAP

Site: https://search.arin.net/rdap/ · Listing: https://osinttools.io/tools/arin-whois-rdap/

Routing data tells you who announces a block. Registry data tells you who it is registered to. ARIN's search returns the network block, the organisation holding it, points of contact, and any reassignment to a customer, which is how you spot a small company renting space from a large host. The REST and RDAP interfaces make it easy to script.

**Drawback:** It covers only addresses ARIN manages. For Europe, Asia-Pacific, Latin America or Africa you need RIPE, APNIC, LACNIC or AFRINIC. Registration also does not prove who is using an address today.

## 6. Team Cymru IP to ASN Mapping

Site: https://www.team-cymru.com/ip-asn-mapping · Listing: https://osinttools.io/tools/team-cymru-ip-to-asn/

When you have a log full of addresses, web lookups stop scaling. Team Cymru's free community service answers over whois (whois.cymru.com) or DNS TXT queries, returns the ASN, AS name and prefix, and has a bulk mode that handles a whole list in one connection. Any terminal with whois or dig can use it.

**Drawback:** The old web form is offline while the service is rebuilt, so it is command-line only for now. It returns routing ownership and nothing else: no location, no reputation.

## 7. asnmap

Site: https://github.com/projectdiscovery/asnmap · Listing: https://osinttools.io/tools/asnmap/

[asnmap](https://osinttools.io/tools/asnmap/) does one job well: give it an ASN, IP, domain or organisation name and it returns the CIDR ranges behind it, in text, JSON or CSV. It reads from stdin, so it slots into a recon pipeline ahead of other ProjectDiscovery tools. It also works as a Go library.

**Drawback:** It needs a free ProjectDiscovery Cloud API key. Organisation-name searches can pull in similarly named companies, so check every range before you use it.

## 8. Metabigor

Site: https://github.com/j3ssie/metabigor · Listing: https://osinttools.io/tools/metabigor/

If you want asnmap's range lookup without an API key, use [Metabigor](https://osinttools.io/tools/metabigor/). It finds CIDRs from an ASN, organisation, domain or IP, then keeps going: subdomains from certificate transparency, open ports and CVEs for each IP from [Shodan InternetDB](https://osinttools.io/tools/shodan/), related domains and archived URLs. Commands share the same input and output formats, so they chain cleanly.

**Drawback:** It depends on free third-party sources that can rate-limit or change without notice. The code search command needs Chrome or Chromium installed.

## 9. ASN Lookup Tool (nitefood/asn)

Site: https://github.com/nitefood/asn · Listing: https://osinttools.io/tools/asn/

This script puts a lot of network context in one command: organisation, peers, announced prefixes, BGP incidents, RPKI validity, abuse contacts, geolocation and reputation for an AS number, IP, prefix, hostname or URL. It does bulk geolocation for incident triage and can run as a small web or JSON lookup server for a team.

**Drawback:** Its traceroute mode sends traffic toward the target, so it is not passive; the lookup and Shodan modes are. Several features rely on third-party APIs and their rate limits.

## 10. BGP Ranking

Site: https://bgpranking.circl.lu/ · Listing: https://osinttools.io/tools/bgp-ranking/

Once you know the network, the next question is whether it has a history. BGP Ranking, run by CIRCL (Luxembourg's national CERT), maps public blocklists of scanning, spam and malware IPs to the AS announcing them and ranks every AS by abuse relative to its size. Small networks that host a lot of bad traffic stand out. You can search by ASN, IP or prefix and follow a network's score over time.

**Drawback:** It is only as good as the public blocklists it ingests, and a high rank describes a network, not a single address.

## What can you do once you have the ASN?

The ASN is a pivot, not an answer. Three moves get the most out of it.

1. **List every range.** Pull the AS's announced prefixes from HE or bgp.tools, or run asnmap or Metabigor to get them as CIDRs you can feed into other tools.
2. **See what runs on those ranges.** Internet scan engines index open ports, banners and certificates by IP. Our [Shodan vs Censys vs ZoomEye](https://osinttools.io/compare/shodan-vs-censys-vs-zoomeye/) comparison covers which one to use.
3. **Check the neighbours.** A hosting AS with a bad BGP Ranking score, or a bulletproof tag on bgp.tools, changes how you read every address inside it.

## A five-minute workflow for one IP

1. Paste the IP into the Hurricane Electric BGP Toolkit. Note the ASN, the AS name and the prefix.
2. Open the same IP in bgp.tools. Check that the origin AS matches and read the network type tag.
3. Look up the IP in IPinfo to see whether it is a hosting, ISP or VPN range.
4. If the block is in North America, check ARIN for a reassignment to a smaller customer. Elsewhere, use that region's registry.
5. Look the ASN up in BGP Ranking before you draw conclusions about the network.

For a list of IPs, swap steps 1 and 2 for Team Cymru's bulk whois. For a company, start with asnmap or Metabigor on its name and domain, then verify each range by hand.

## Which tool should you start with?

For one IP, start with the Hurricane Electric BGP Toolkit and confirm on bgp.tools. For many IPs, use Team Cymru from a script. For a whole organisation, use Metabigor if you want no API keys and asnmap if you already work in ProjectDiscovery's tools. Add IPinfo when you need to know what kind of address it is, and BGP Ranking when you need to know whether to trust the network.

For more lookups that start from an address, browse every [OSINT tool that takes an IP address](https://osinttools.io/tools/input/ip/).

## FAQ

**What is the Hurricane Electric BGP Toolkit?**
A free website from Hurricane Electric at bgp.he.net. It shows which ASN announces an IP or prefix, that network's peers, upstreams and announced prefixes, and its IRR and WHOIS records. No account is needed.

**How do I look up the ASN for an IP address?**
Paste the IP into the Hurricane Electric BGP Toolkit, bgp.tools or IPinfo. From a terminal, Team Cymru's whois service (whois.cymru.com) returns the ASN, AS name and prefix, and handles lists in bulk.

**What is asnmap?**
An open-source command-line tool from ProjectDiscovery that returns the CIDR ranges behind an ASN, IP, domain or organisation name. It needs a free ProjectDiscovery Cloud API key.

**What is Metabigor?**
An open-source command-line tool that maps an organisation's IP ranges, subdomains, open ports and archived URLs from free sources, without API keys.

**Is an ASN lookup passive?**
Yes. Routing and registry lookups read public data and send nothing to the target. The exception in this list is the traceroute mode of the nitefood/asn script, which sends traffic toward the host.
