Skip to content
@personnummer

Personnummer

Packages for validating Swedish personal identity numbers in different programming languages.

About Personnummer

Personnummer is a small open-source project created to validate, format and determine sex and age from swedish personal identity numbers. Support the project by becoming a backer or sponsor at OpenCollective.

Features

  • validation
  • formatting
  • determine age
  • determine sex
  • determine if coordination number
  • determine if interim number

All features might not be implemented in all languages. Full specification can be found here.

Pinned Loading

  1. js js Public

    Validate Swedish personal identity numbers

    TypeScript 54 9

  2. php php Public

    Validate Swedish personal identity numbers

    PHP 32 9

  3. go go Public

    Forked from frozzare/go-personnummer

    Validate Swedish personal identity numbers

    Go 8 4

  4. java java Public

    Validate Swedish personal identity numbers

    Java 8 5

  5. csharp csharp Public

    Validate Swedish personal identity numbers

    C# 14 11

  6. dart dart Public

    Validate Swedish personal identity numbers

    Dart 4 4

Repositories

Showing 10 of 26 repositories
  • js Public

    Validate Swedish personal identity numbers

    personnummer/js’s past year of commit activity
    TypeScript 54 MIT 9 1 1 Updated Mar 20, 2025
  • personnummer.github.io Public

    Personnummer website

    personnummer/personnummer.github.io’s past year of commit activity
    TypeScript 1 0 1 0 Updated Mar 19, 2025
  • php Public

    Validate Swedish personal identity numbers

    personnummer/php’s past year of commit activity
    PHP 32 MIT 9 1 0 Updated Mar 19, 2025
  • go Public Forked from frozzare/go-personnummer

    Validate Swedish personal identity numbers

    personnummer/go’s past year of commit activity
    Go 8 MIT 5 1 0 Updated Mar 19, 2025
  • js-generate Public

    Generate Swedish Personal Identity Numbers

    personnummer/js-generate’s past year of commit activity
    TypeScript 6 MIT 0 1 0 Updated Mar 17, 2025
  • scala Public

    Validate Swedish personal identity numbers

    personnummer/scala’s past year of commit activity
    Scala 2 MIT 1 1 0 Updated Mar 17, 2025
  • java Public

    Validate Swedish personal identity numbers

    personnummer/java’s past year of commit activity
    Java 8 MIT 5 1 0 Updated Mar 14, 2025
  • kotlin Public

    Validate Swedish personal identity numbers

    personnummer/kotlin’s past year of commit activity
    Kotlin 3 MIT 4 2 0 Updated Feb 25, 2025
  • csharp Public

    Validate Swedish personal identity numbers

    personnummer/csharp’s past year of commit activity
    C# 14 MIT 11 1 0 Updated Feb 12, 2025
  • python Public

    Validate Swedish personal identity numbers

    personnummer/python’s past year of commit activity
    Python 13 MIT 13 1 0 Updated Jan 28, 2025