# pyWhat

> Python tool that identifies what a string or file contains: emails, IPs, crypto addresses, API keys, URLs and many more patterns.

Source: https://osinttools.io/tools/pywhat/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** File
- **Category:** Data analysis and case notes
- **Pricing:** Free, open source
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI · Python library
- **Website:** https://github.com/bee-san/pyWhat
- **GitHub:** bee-san/pyWhat, 7,361 stars · Python · MIT · last commit 2026-11-05
- **Listed:** Nov 27
- **Last verified by an editor:** Nov 27, 2026

## What it does

pyWhat (command what) takes a piece of text, a file or a whole directory and tells you what is in it, matching against a large library of patterns for things like email addresses, IP addresses, URLs, phone numbers, cryptocurrency addresses, API keys and webhooks. It works recursively, so it finds every match inside larger files, including packet captures.

Investigators use it to make sense of an unknown identifier, or to pull the useful indicators out of a large text file, a pcap or source code in seconds. Filters such as --include "Bug Bounty" narrow the output, and it can also be imported as a Python library.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.

## Features

- Identifies a wide range of data types
- Works on text, files, folders and pcaps
- Crypto address and API key detection
- Tag-based include and exclude filters
- Python library and CLI

## Pros

- Instant answer to 'what is this string?'
- Large, community-maintained pattern set
- Easy pip or Homebrew install
- Runs fully offline

## Cons

- Pattern matching gives false positives on short or generic strings
- Identifies patterns only; does not look anything up
- Command-line use only

## When to use it

- Use it when you find an unfamiliar identifier and want to know what kind of value it is.
- Use it when you need to extract emails, URLs and crypto addresses from a large text file or pcap.

## Quick start

Install from PyPI:

```
pip3 install pywhat
pywhat --help
```

## Alternatives

- [AI Voice Detector](https://osinttools.io/tools/ai-voice-detector/): Web detector that scores whether speech in an audio clip is AI-generated, segment by segment, with a free tier and an API. (Freemium · File · passive)
- [ALEAPP](https://osinttools.io/tools/aleapp/): Open-source parser that turns an Android extraction into HTML, TSV, timeline and KML reports of messages, app data and logs. (Open source · File · passive · 1,055 GitHub stars)
- [APKLeaks](https://osinttools.io/tools/apkleaks/): Python CLI that decompiles an Android APK with jadx and scans it for URLs, endpoints and hardcoded secrets. (Open source · File · passive · 6,404 GitHub stars)
- [Apache Tika](https://osinttools.io/tools/apache-tika/): Apache toolkit that detects file types and extracts text and metadata from over a thousand formats, including PDF and Office. (Open source · File · passive · 4,160 GitHub stars)
- [Apktool](https://osinttools.io/tools/apktool/): Open-source tool for decoding Android APK files into readable resources and smali code, and rebuilding them. (Open source · File · passive · 27,387 GitHub stars)
- [Autopsy](https://osinttools.io/tools/autopsy/): Open-source digital forensics platform and GUI for The Sleuth Kit, used to examine disk images, phones and other media. (Open source · File · passive · 3,468 GitHub stars)

All alternatives to pyWhat in one table: https://osinttools.io/tools/pywhat/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
