# idna

> Internationalized domain names (IDNA 2008 and UTS #46) for Python

Source: https://talira.ai/catalog/idna-x34ggd0x
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / parsing / urls](https://talira.ai/categories/developer-tools/parsing/urls), [languages / python](https://talira.ai/categories/languages/python)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Kim Davies](https://talira.ai/orgs/kim-davies.md)

idna converts internationalized domain names between their Unicode form (U-labels) and the ASCII-compatible encoding used on the wire (A-labels, the xn-- form), following IDNA 2008 (RFC 5891) and Unicode's IDNA Compatibility Processing (UTS #46). It supersedes Python's standard library encodings.idna, which only implements the 2003 specification, with broader script coverage and limits on domains with known security problems. The encode and decode functions convert whole domains, and alabel and ulabel single labels; UTS #46 mapping normalises input such as capital letters first. Errors carry machine-readable codes, and an idna command converts domains from the shell. It supports Python 3.10 and later, free-threaded Python included.

## Links

- GitHub: https://github.com/kjd/idna

## Problems it solves

- convert an internationalized domain name to punycode in Python
- Python's built-in idna codec rejects or mangles newer Unicode domain names
- validate that a user-entered domain name with non-Latin characters is a valid IDN

## Features

- Encode and decode internationalized domain names between Unicode and xn-- ASCII form (IDNA 2008)
- UTS #46 compatibility mapping that normalises user input before conversion
- Per-label conversion with alabel and ulabel
- Exceptions with machine-readable codes, codepoints and positions
- idna command-line tool for converting domains
- Thread-safe on free-threaded Python

## Limitations

- Emoji domains aren't supported: the IDNA standard prohibits encoding symbols such as emoji[^1]
- On an older Python, a character new to Unicode may be rejected as unknown, since some data comes from the running Python's unicodedata module[^1]

## Trust

Overall: 0.50 out of 1.
Signals: maintenance 0.81, adoption 0.50, momentum 0.14, community 0.63, backing 0.30, extensibility 0.00.

- last commit 29 days ago
- 31 commits in the last 90 days
- latest release v3.20 2 months ago
- 309 GitHub stars
- 37 contributors
- backed by Kim Davies

## Sources

[^1]: https://github.com/kjd/idna/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/kjd/idna/blob/master/LICENSE.md (checked 28 Nov 2026)
