Skip to content
TextArray
100% local

Number to ordinal

Replace integers in text with their English ordinal forms (1st, 2nd, 3rd, etc.).

Input
Output

Number to ordinal

Convert numbers to ordinal form instantly. Every integer in your text becomes its ordinal equivalent: 1 becomes 1st, 2 becomes 2nd, 3 becomes 3rd, and so on, following English grammar rules. This tool handles the standard suffix rules correctly, including the special case where 11, 12, and 13 always use "th" regardless of their position. You can convert ordinals in any text, from event descriptions to historical timelines.

Ordinals are used to express rank, order, or position: the 1st place finisher won the tournament, the 2nd floor has the office, the 21st century started in 2001, or the 100th anniversary calls for celebration. The tool processes text line by line and preserves all punctuation, whitespace, and special characters — only the integers change. Numbers that are part of larger text (like email addresses, product codes, or decimal numbers) are left untouched; only standalone whole numbers are converted.

The conversion is instant and runs entirely in your browser, so your text never leaves your device. The live counter shows exactly how many numbers were converted with a single glance. Copy the result, download it as a text file, or send it to another tool for further processing. This makes it perfect for writing contest results, floor plans, historical narratives, or any document where ranking matters.

FAQ

What are ordinal numbers?
Ordinal numbers express rank or position (1st, 2nd, 3rd, etc.), as opposed to cardinal numbers which express quantity (1, 2, 3). They are used to describe order in sequences, rankings, and dates.
Does it handle numbers like 11, 12, and 13 correctly?
Yes. These numbers always use "th" as the suffix (11th, 12th, 13th), even though most other numbers ending in 1, 2, or 3 use "st", "nd", and "rd". The tool applies this rule consistently for all numbers.
What if my text contains decimal numbers?
Only whole integers are converted. Decimal numbers like 3.14 or 2.71 are left untouched because ordinal forms are not defined for decimals.
Does it preserve the formatting of my text?
Yes. All punctuation, line breaks, spacing, and capitalization are preserved exactly as they were. Only the integers are replaced with their ordinal forms.
Is my text uploaded to a server?
No. The conversion happens entirely in your browser and your text never leaves your device. It is safe for sensitive or private text.