Convert a Number to an Ordinal

Turn numbers like 1, 21, or 1000 into ordinals like 1st, 21st, and 1000th in just a click. The Convert a Number to an Ordinal tool gives you fast, accurate results for lists of numbers whether you’re converting one or hundreds at a time.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .csv, .tsv, .log, .json, .xml, .md, .ini, .yaml, .yml, .html, .htm, .css
Total items: 0
Options
Trim extra spaces
Remove blank lines
Remove duplicates

How to Use:

Begin by pasting a list of numbers into the input box on the left. Each number should be on its own line for example:

1  
2
3
21

Alternatively, click “Choose File” to upload a plain-text file like .txt or .csv. You’ll see a list of supported formats directly under the file input. Once your numbers are loaded, the tool instantly displays the ordinal versions in the right-hand box.

Want more control over the output? Use the Options box. You can trim extra spaces from each line, remove blank lines, and even deduplicate your list. Toggle these features on or off depending on what your input looks like.

The tool shows you how many ordinals were generated just beneath the output. From there, copy the results or export them to a file. If you want to reset everything and start again, click “Clear All.”

What Convert a Number to an Ordinal can do:

This tool reads each number from your input and turns it into its correct ordinal form whether it ends in st, nd, rd, or th. It handles edge cases like 111th or 213th with no problem. It works great with single values, but it also supports bulk conversion from long lists or imported files.

You decide how clean the list should be using toggles for trimming, blank removal, and deduplication. It’s instant, offline, and runs right in your browser.

Example:

Input:

1  
2
3
4
11
21
102

Output:

1st  
2nd
3rd
4th
11th
21st
102nd

Common Use Cases:

Whether you’re formatting ranked results, building labeled data, or cleaning up number lists for presentation, Convert a Number to an Ordinal helps you do it fast. No formulas, no scripts just a clean ordinal output, ready to copy or export.

Useful Tools & Suggestions:

After converting a number to an ordinal, Add Line Numbers is a handy follow-up if you’re numbering items in a list. And if the output needs to fit a certain style, Replace Digits with Words can help smooth it out for more natural phrasing.