The One Bill

Restaurant, travel, rentals…

Split bills without hassle

Organize group expenses with the agility of a spreadsheet.

SIN Generator

Generate random Canadian Social Insurance Numbers
About
Use the SIN generator to create a valid SIN number.

Is a generated SIN a fake SIN?

Yes. Every SIN on this page is made up: the digits are random and the last one is a Luhn check digit, so a form that only checks the format accepts it. The numbers are never taken from real records, but because they are random, one can match a SIN that was really issued to someone. Use them as test data in forms, staging, QA and demos, never on a real application.

What a SIN is and what its digits mean

The Social Insurance Number (SIN) is the 9-digit number you need to work in Canada or to get government programs and benefits. Service Canada issues it to one person, for life, and it is confidential. It is written as three groups of three digits: 123 456 789.

The first digit is not random. A SIN that starts with 9 was issued to a temporary resident (someone who is neither a Canadian citizen nor a permanent resident) and expires with their immigration documents. (canada.ca)

How the Luhn check digit works, with 046 454 286

Start from the right. Keep the last digit, the check digit, as it is, double the one before it, and keep alternating all the way to the left. When doubling gives a two-digit number, add its two digits together (16 counts as 1 + 6 = 7). Then add up the nine results.

Digit046454286
Multiply by×1×2×1×2×1×2×1×2×1
Counts as086858216→76

The total is 50. It ends in 0 (⁦50 mod 10 = 0⁩), so 046 454 286 passes. Change any single digit and the total no longer ends in 0, which is how a form catches a typo.

046 454 286 is the usual textbook example. It starts with 0, so this generator would never give it to you (see below), but every number it gives you passes the same check.

When a generated SIN is rejected

When the check is about the person, not the digits. A system that matches the SIN with the person it was issued to rejects a generated number, even in the rare case that the digits match a real SIN: it was never issued to you. That is where this tool stops. It gives you test data for format checks, not a way past an identity check.

When the form checks the first digit. This generator only uses 1 to 7 as the first digit, so it never gives you a number that starts with 0, 8 or 9. To test how a form handles a temporary resident's SIN, which starts with 9, you need to write one yourself. It does not compare its numbers with any list of issued SINs.

Using the tool

Pick how many SINs you need, from 1 to 100, and press Generate. Leave "Apply mask" on for the 123-456-789 format, or turn it off when a field or an API expects the nine digits only. Then copy the whole list in one tap.

The One Generator

We got more utilities for you...

Generators in a dashboard

Select several utilities and put them in a dashboard.