This tool converts a cardinal number (1, 2, 3) into its ordinal form (1st, 2nd, 3rd) by adding the correct English suffix. It is handy for dates, rankings, leaderboards, and any prose where positions are written out.
How it works
English ordinal suffixes follow a simple rule based on the final digits:
ends in 1 → st (1st, 21st, 101st)
ends in 2 → nd (2nd, 32nd)
ends in 3 → rd (3rd, 43rd)
otherwise → th (4th, 5th, 100th)
The one exception is the teens: any number whose last two digits are 11, 12, or
13 takes th (11th, 12th, 13th, 111th, 212th, 513th). The tool checks the last
two digits for this exception first, then falls back to the last-digit rule.
Example and tips
21 becomes 21st, 112 becomes 112th, and 103 becomes 103rd. The
exception always wins for the teens, which is why 13 is 13th even though it
ends in 3. For negatives, the suffix is taken from the magnitude — -1 is
-1st.