EditSafely

Convert an Ordinal to Integer

Remove -st, -nd, -rd, -th suffixes from ordinals. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

How to use Convert an Ordinal to Integer

  1. 1. Paste the ordinals. Enter ordinal values like 1st, 22nd or 103rd, one per line or separated by spaces. The tool strips the suffix from each and keeps only the numeric value.
  2. 2. Review the stripped integers. The output lists the plain integer for each ordinal you entered, in the same order, with the -st, -nd, -rd or -th suffix removed.
  3. 3. Copy the plain numbers. Copy the resulting integers into a spreadsheet, sort function, or calculation that needs plain numeric values rather than ordinal text.

When to use Convert an Ordinal to Integer

Convert an Ordinal to Integer strips the -st, -nd, -rd and -th suffixes from a list of ordinal values, recovering the plain whole number underneath. Reach for it whenever text or data uses ordinal formatting that a calculation or sort needs to ignore.

  • Cleaning scraped ranking data. A leaderboard or results table scraped from a webpage stores positions as 1st, 22nd and 103rd instead of plain numbers. Strip the suffixes here before sorting or charting the rankings.
  • Preparing dates for a spreadsheet formula. A dataset stores day-of-month values as 1st, 2nd and 3rd, which spreadsheet date functions cannot parse directly. Convert them to plain integers first so the formulas work correctly.
  • Normalizing user-entered form data. A form field accepted free text and users typed ordinal values like 11th instead of 11. Clean the batch of submissions here before loading them into a database column.
  • Feeding ordinal text into a calculation. A report references items by ordinal position, like the 4th quarter, and you need the plain 4 to use in a formula or comparison elsewhere in the sheet.

Examples

Ordinal suffixes

Input

1st
22nd
103rd
11th

Output

1
22
103
11

Ordinal words

Input

twenty-first
one hundredth

Output

21
100

About the Convert an Ordinal to Integer tool

Convert an Ordinal to Integer does its work locally, right in the browser. Remove -st, -nd, -rd, -th suffixes from ordinals. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the Integer Tools collection on EditSafely, a set of 133 small, focused Integer utilities that share the same instant, private workspace.

There is nothing to configure. Provide the input and the result appears on its own. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Is Convert an Ordinal to Integer free to use?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.