Home β€Ί πŸ‡¨πŸ‡­ Switzerland β€Ί AHV/AVS social security number

Generate a test Switzerland AHV/AVS social security number

A Swiss AHV/AVS number is thirteen digits beginning with the country prefix 756, with an EAN-13 check digit. These test values are synthetic but carry a valid check digit.

Synthetic Β· not collision-guaranteed Validate a number β†’
756.6059.9267.44

Synthetic AHV number (EAN-13 valid). Not a real issued number.

Format specification

IdentifierAHV/AVS social security number (AHV-Nr / No AVS)
CountryπŸ‡¨πŸ‡­ Switzerland
Format756.0000.0000.00
Length13 characters
ChecksumEAN-13
Example756.7291.3633.59
Safe strategy Synthetic
Data qualityVerified against sources

Validation regex

Matches the canonical value β€” strip separators and uppercase first: value.replace(/[^A-Za-z0-9]/g, '').toUpperCase()

^756\d{10}$

References

  1. en.wikipedia.org/wiki/Social_Security_number_(Switzerland)

Common questions

Will these pass my validation?

Yes β€” they are well-formed AHV/AVS social security number values (756.0000.0000.00) and pass standard format checks, including the EAN-13 checksum.

Could one belong to a real person?

These are synthetic values. They are format-valid but not drawn from a guaranteed reserved range, so use them only for testing.

Can I generate many at once?

Increase the count, or use the free API and CSV/JSON export for large datasets.

Validate an existing number β†’

For software testing only. These numbers are synthetic and must never be used for real-world identification, applications, or to impersonate anyone.