tags:

views:

1030

answers:

4

Is there a SSN that is roughly the equivalent of example.com - something that is widely (and officially) recognized as an example/test value only?

Clarification: As per my comment, what I'm really asking is if there's a canonical "test SSN" that is used by convention, so is understood by all who see it that it is not a real SSN.

+4  A: 

all zeros would probably be the most obvious that it wasn't a real SSN.

brian
Or he could try ###-##-####.
Robusto
@Robusto: That works unless he has some validation for numeric values.
FrustratedWithFormsDesigner
I will now use all those invalid--but numeric!--ranges on random websites. You'd be surprised how many accept (555) 555-5555 (after you remove the punctuation, of course, because they're "validating").
Roger Pate
+25  A: 

According to Wikipedia, here are some number groups that will never be allocated:

  • Numbers with all zeros in any digit group (000-xx-####, ###-00-####, ###-xx-0000)
  • Numbers of the form 666-xx-####
  • Numbers from 987-65-4320 to 987-65-4329 are reserved for use in advertisements

Consider using one of these (the obviously invalid 000-00-0000 would be a good one IMO).

Håvard S
All other things being equal, choosing the first digit group to contain your "all zeros" is a good test of your code to make sure zeros aren't being dropped from the beginning of your SSNs (storing the SSN as a number is a common mistake).
lance
+5  A: 

To expand on the Wikipedia-based answers:

The Social Security Administration (SSA) explicitly states in this document that the having "000" in the first group of numbers "will NEVER be a valid SSN":

I'd consider that pretty definitive.

However, that the 2nd or 3rd groups of numbers won't be "00" or "0000" can be inferred from a FAQ that the SSA publishes which indicates that allocation of those groups starts at "01" or "0001":

But this is only a FAQ and it's never outright stated that "00" or "0000" will never be used.

I can't find a reference to the 'advertisement' reserved SSNs on the SSA site, but it appears that no numbers starting with a 3 digit number higher than 772 (according to the document referenced above) have been assigned yet, but there's nothing I could find that states those numbers are reserved. Wikipedia's reference is a book that I don't have access to. The Wikipedia information on the advertisement reserved numbers is mentioned across the web, but many are clearly copied from Wikipedia. I think it would be nice to have a citation from the SSA, though I suspect that now that Wikipedia has made the idea popular that these number would now have to be reserved for advertisements even if they weren't initially.

The SSA has a page with a couple of stories about SSN's they've had to retire because they were used in advertisements/samples (maybe the SSA should post a link to whatever their current policy on this might be):

Michael Burr
Excellent answer. Based on this, I'm going to adopt 000-11-1111 as the default example SSN.
Rob