Skip to content
induwara.lk
induwara.lkUtility · Text

Soundex Calculator, Phonetic Name Coding

Convert any name into its American Soundex code (one letter plus three digits, like Robert → R163) and see every mapping step. Built on the official U.S. National Archives rules, no signup, no ads, sources cited below.

By Induwara AshinsanaUpdated Jul 16, 2026
Encode a name to SoundexAmerican Soundex
NARA rules · self-verified

Letters A–Z only are coded; other characters are ignored. Max 60 characters.

Try a name
Soundex code
R163

ROBERT and RUPERT both encode to R163.

Letters coded
6
ROBERT
Cross-check
R163
Matches, both methods agree

A Soundex code is always one letter plus three digits. This name produced 3 coded digits; the code is padded with zeros to reach three.

Step-by-step derivation

LetterActionDigitWhy
R1stRRetained as the leading letter (its own code 6 guards against repeating it)
Oskip—O is not coded; as a vowel it separates codes, so equal codes on either side are both kept
Bcode1Coded 1
Eskip—E is not coded; as a vowel it separates codes, so equal codes on either side are both kept
Rcode6Coded 6
Tcode3Coded 3

Letter → digit reference (NARA)

1B F P V
2C G J K Q S X Z
3D T
4L
5M N
6R
—A E I O U Y H W

Coding follows the U.S. National Archives (NARA) Soundex rules, the same system used for the U.S. Census index and SQL SOUNDEX(). Every code is checked against a second, independent implementation before it is shown. Sources are listed below the tool.

How it works

Soundex is a phonetic algorithm that indexes names by sound rather than spelling, so that homophones, names that sound alike but are spelled differently, receive the same code. It was patented by Robert C. Russell in 1918 and later adopted by the U.S. National Archives to index the Federal Census; today the same rules power the SOUNDEX() function in SQL databases. Every code is exactly four characters: one letter followed by three digits.

The tool applies the National Archives rules in order:

  1. Retain the first letterof the name as the code's leading character.
  2. Map the remaining letters to digits using the fixed table:
    • 1 → B, F, P, V
    • 2 → C, G, J, K, Q, S, X, Z
    • 3 → D, T
    • 4 → L
    • 5 → M, N
    • 6 → R
    • not coded → A, E, I, O, U, Y, H, W
  3. Collapse adjacent equal codes.Two or more letters in a row that map to the same digit are coded only once. This also applies to the first letter: if the second letter shares the first letter's code, it is not coded again (this is why the f in Pfister is dropped).
  4. H and W are transparent. Two letters with the same code separated only by an H or W are treated as adjacent and coded once, the rule that collapses the s and c in Ashcraft into a single 2.
  5. Vowels separate. Two letters with the same code separated by a vowel (A, E, I, O, U or Y) are coded twice, because the vowel breaks the run, the reason both n and m survive in Honeyman.
  6. Fix the length to four. If fewer than three digits were produced, pad with trailing zeros; if more than three, keep only the first three.

To keep the result trustworthy, the calculator computes each code with two independent implementations, a single-pass state machine that also produces the derivation table, and a separate marker-and-collapse method, and only displays a code when both agree. The letter-by-letter derivation shown on-screen is the actual decision log from the coder, not a re-explanation.

Worked examples

Robert

R163

  1. Retain R as the leading letter
  2. o → vowel, skipped
  3. b → 1
  4. e → vowel, skipped
  5. r → 6
  6. t → 3
  7. Digits 1, 6, 3 → R163 (Rupert also → R163)

Ashcraft

A261

  1. Retain A as the leading letter
  2. s → 2
  3. h → transparent (does not break the run)
  4. c → 2, same code as s across the h, so collapsed
  5. r → 6
  6. a → vowel, skipped
  7. f → 1, three digits reached, so the trailing t is truncated → A261

Pfister

P236

  1. Retain P (its own code is 1)
  2. f → 1, same as P's code, so dropped
  3. i → vowel, skipped
  4. s → 2
  5. t → 3
  6. e → vowel, skipped
  7. r → 6 → P236

Honeyman

H555

  1. Retain H as the leading letter
  2. o → vowel, skipped
  3. n → 5
  4. e, y → skipped (both act as vowels)
  5. m → 5, coded again because a vowel separated it from the previous 5
  6. a → vowel, skipped
  7. n → 5 → H555

Frequently asked questions

Sources & references

The letter-to-digit table and the H/W and vowel separator rules were last cross-checked against the NARA and Census sources on 2026-07-16. Soundex is a fixed historical standard, so these rules do not change; the calculator's worked examples (Smith/Smyth → S530, Robert/Rupert → R163, Ashcraft/Ashcroft → A261) match the codes published in those sources.

Related tools

Comments & feedback

Spotted a bug or want an improvement? Tell us, our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a name that codes differently from your database? Let me know.

Email me at [email protected] , most fixes ship within 24 hours.