# Uniq

> UUID generation, parsing and formatting for Elixir

Source: https://talira.ai/catalog/uniq-v0wx6dv7
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / unique ids](https://talira.ai/categories/libraries/unique-ids), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (Apache-2.0).
- Free tier: yes[^1]
- Backed by: [Paul Schoenfelder](https://talira.ai/orgs/paul-schoenfelder.md)

Uniq is Paul Schoenfelder's Elixir library for generating, formatting, parsing and analysing UUIDs as RFC 9562 defines them. It generates versions 1, 3, 4, 5, 6 and 7, parses those and opaque UUIDv8 payloads, and formats UUIDs as canonical strings, URNs or a compact 22-character URI-safe base64 form. It works as an Ecto field type in place of `Ecto.UUID` and can replace `elixir_uuid`.

## Links

- GitHub: https://github.com/bitwalker/uniq
- Docs: https://hexdocs.pm/uniq

## Problems it solves

- generate time-ordered UUIDv7 primary keys in my Elixir app
- store UUIDs in a short URL-safe form in Elixir
- replace elixir_uuid with a maintained UUID library
- parse and validate UUID strings in either case in Elixir

## Features

- generates UUID versions 1, 3, 4, 5, 6 and 7
- parses those versions and opaque UUIDv8 payloads
- reversible UUIDv47 timestamp masking as v4-shaped facades
- canonical, URN and compact 22-character base64 formats
- Ecto field type in place of Ecto.UUID

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.69, adoption 0.42, momentum 0.14, community 0.46, backing 0.30, extensibility 0.00.

- last commit 26 days ago
- 14 commits in the last 90 days
- latest release 0.7.0 26 days ago
- 122 GitHub stars
- 13 contributors
- backed by Paul Schoenfelder

## Related

- Works with [Ecto](https://talira.ai/catalog/ecto-dq6bsaxc.md)

## Alternatives

- [uuid (Erlang)](https://talira.ai/catalog/uuid-erlang-peaa0cfr.md): Erlang native UUID generation
- [Nanoid (Elixir)](https://talira.ai/catalog/nanoid-elixir-pmmbtxrb.md): Elixir port of Nano ID, a tiny, secure, URL-friendly unique ID generator

## Sources

[^1]: https://github.com/bitwalker/uniq/blob/main/LICENSE.md (checked 29 Nov 2026)
