Find All Countries in Text

Scan any text and pull out every country name it contains using the Find All Countries in Text Tool. This fast, browser-based utility checks your input against a global list of official countries and gives you a clean, formatted output.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .csv, .tsv, .log, .json, .xml, .md, .ini, .yaml, .yml, .html, .htm, .css
Total characters: 0
Options
Remove duplicates
Sort alphabetically
Maximize output

How to Use:

Paste or type your content into the input area on the left. You can also import a file using the Choose File button. As soon as you enter text, the tool will search for any matching country names and list them on the right.

Use the Options panel to remove duplicates or sort the country names alphabetically. The tool updates live with every edit or toggle. Once you’re satisfied, you can copy the results, export them as a file, or clear everything to start over.

What the Find All Countries in Text Tool Does:

The Find All Countries in Text Tool compares your input to a full list of globally recognized country names. It finds matches regardless of casing and filters out duplicates if needed. You can sort the result alphabetically and instantly copy or export the list. It runs entirely in your browser, keeping everything private and fast.

Example:

Input:

France and Germany signed a new agreement.
The United States and Canada were present.
Also mentioned: Brazil, China, and Australia.

Options:

  • Remove duplicates: on
  • Sort alphabetically: on

Output:

Australia
Brazil
Canada
China
France
Germany
United States

Common Use Cases:

Researchers, editors, teachers, and developers use the Find All Countries in Text Tool to extract country names from articles, datasets, or user input. It’s especially useful for tagging, geolocation, analytics, or validating text-based fields. Fast and reliable, it’s a practical tool for working with country references in any kind of document.

Useful Tools & Suggestions:

If you’re working with geographic data, Find All Cities in Text helps narrow things down to a more local level. And when you’re prepping content for display or filtering, Highlight Words in Text can make country names stand out visually great for quick scans or UI overlays.