# idna (Erlang)

> A pure Erlang IDNA implementation for internationalised domain names

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

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / urls](https://talira.ai/categories/developer-tools/parsing/urls), [languages / erlang](https://talira.ai/categories/languages/erlang)
- Licence: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [Benoît Chesneau](https://talira.ai/orgs/benoit-chesneau.md)

idna converts internationalised domain names between Unicode and their ASCII (Punycode) form in pure Erlang, following IDNA 2008 (RFC 5891), with UTS #46 compatibility processing and IDNA 2003 transitional mapping. It validates labels (NFC normalisation, hyphen placement, combining marks, contextual and bidirectional rules) and works from Elixir through Mix as well as from rebar3. It isn't the Python [idna](https://talira.ai/catalog/idna-x34ggd0x.md) package.

## Links

- GitHub: https://github.com/benoitc/erlang-idna

## Problems it solves

- turn a domain name with accented or non-Latin characters into its xn-- form in Erlang
- decode Punycode hostnames back to Unicode in an Elixir app
- validate an internationalised domain name before using it

## Features

- IDNA 2008 encoding and decoding (RFC 5891)
- UTS #46 compatibility processing, with IDNA 2003 transitional mapping
- label validation: NFC, hyphen placement, leading combining marks, CONTEXTJ/CONTEXTO and bidirectional rules (RFC 5893)
- usable from Erlang (rebar3) and Elixir (Mix)

## Trust

Overall: 0.42 out of 1.
Signals: maintenance 0.74, adoption 0.33, momentum 0.03, community 0.43, backing 0.30, extensibility 0.00.

- last commit 17 days ago
- 21 commits in the last 90 days
- latest release 8.0.0 17 days ago
- 44 GitHub stars
- 11 contributors
- backed by Benoît Chesneau

## Sources

[^1]: https://github.com/benoitc/erlang-idna/blob/master/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/benoitc/erlang-idna/blob/master/src/idna.app.src (checked 29 Nov 2026)
