# ISO 3166 Country Code TLD and Subdivision Mapper

Look up ISO country codes, ccTLD, calling, IOC, M49, FIPS and ISO 3166-2 subdivision data

> Canonical page: https://elysiatools.com/en/tools/iso-3166-country-code-tld-and-subdivision-mapper

- **Category:** Data Processing

- **Keywords:** ISO 3166, country code, ccTLD, IOC, UN M49, FIPS, subdivision, timezone

## Overview

Uses bundled local datasets, preserves null auxiliary codes, exposes IANA timezones and returns subdivision parent relationships without network calls.

## Inputs

- **Query** (text): US, USA, .us, 840, IOC, FIPS or US-CA
- **Search Field** (select)
- **Include Subdivisions** (checkbox)
- **Result Limit** (number)

## When to use

- You need to convert a country name or code into ISO, ccTLD, calling, IOC, M49, or FIPS values.
- You need to resolve an ISO 3166-2 subdivision and identify its parent country.
- You want consistent country metadata from a local dataset without making network requests.

## How it works

- Enter a query such as "US", "USA", ".us", "840", or "US-CA".
- Choose a search field, or leave Search Field set to Auto to let the mapper identify the query type.
- Enable Include Subdivisions when subdivision data should be included in the lookup.
- Set the result limit from 1 to 50, then receive the matching records as JSON.

## Use cases

- Build country reference tables with consistent ISO, domain, calling, sports, regional, and legacy code values.
- Validate or enrich geographic data that contains mixed country identifiers such as USA, 840, .us, or US-CA.
- Resolve administrative subdivisions and connect them to their parent country in data analysis workflows.

## Frequently asked questions

### Which query formats are supported?

You can search with country names, ISO alpha-2 or alpha-3 codes, ISO numeric codes, ccTLDs, ITU calling codes, IOC codes, UN M49 codes, FIPS codes, and ISO 3166-2 subdivision codes.

### What does Auto search do?

Auto search selects the appropriate lookup behavior based on the value entered in the Query field.

### Can I look up subdivisions such as US-CA?

Yes. Select ISO 3166-2 subdivision as the search field to resolve a subdivision and its parent country relationship.

### What does the tool return?

The tool returns structured JSON country or subdivision records, including available code values and IANA timezone data.

### Does the lookup require an internet connection?

No. The mapper uses bundled local datasets and does not make network requests.

## Related tools

- [Log Redactor](https://elysiatools.com/en/tools/log-redactor): Batch redact sensitive data from logs using configurable rules and multiple strategies
- [Foreign Key Validator](https://elysiatools.com/en/tools/data-foreign-key-validator): Validate foreign key relationships between multiple datasets. Perfect for checking data integrity, finding orphaned records, and ensuring referential consistency across related tables. Features: - Validate foreign key relationships - Find orphaned records - Check referential integrity - Support multiple key formats - Cross-table validation - Missing key detection - Duplicate key analysis - Relationship mapping Common Use Cases: - Database integrity checks - Data migration validation - ETL process verification - Referential consistency checks - Data quality assurance - Relationship analysis
- [International Calling Code](https://elysiatools.com/en/tools/calling-code): Find the international telephone calling code for any country
- [Beam Deflection Calculator](https://elysiatools.com/en/tools/deflection-calculator): Look up and compute the maximum deflection for four classic beam cases: cantilever with end point load (δ=PL³/3EI), cantilever with UDL (δ=qL⁴/8EI), simply supported with mid-span point load (δ=PL³/48EI), and simply supported with UDL (δ=5qL⁴/384EI).
- [Electron Configuration Calculator](https://elysiatools.com/en/tools/electron-configuration-calculator): Look up electron configurations, shell distributions, valence electrons, and orbital diagrams by element symbol or atomic number
- [.env Parser](https://elysiatools.com/en/tools/env-parser): Extract and validate .env style KEY=VALUE configurations with detection of duplicate keys and suspicious spaces/quotes
- [Column Calculator](https://elysiatools.com/en/tools/column-calculator): Perform calculations on columns and add new rows
- [Data Append Merger](https://elysiatools.com/en/tools/data-append-merger): Vertically append and merge multiple data tables with intelligent column matching

## Samples

- [QR Code Samples](https://elysiatools.com/en/samples/qrcode-samples): Sample QR code images for testing QR code reading and generation tools
- [Code Comment Samples](https://elysiatools.com/en/samples/code-comment-samples): Sample code files with various comment styles for testing comment removal
- [Code Viewer Samples](https://elysiatools.com/en/samples/code-viewer-samples): Sample long-tail code and config files (shell, Vue, C++, TOML, Graphviz) for the in-browser Code Viewer
- [Code Documentation Samples](https://elysiatools.com/en/samples/docstring-extractor): Code samples with various documentation styles including JSDoc, JavaDoc, Python docstrings, and TypeScript annotations
