Convert an Oridinal to Integer

Convert an Ordinal to Integer takes English-style ordinal numbers like “1st”, “2nd”, “103rd”, and turns them into plain integers. You can paste a list, import from a file, or type values manually. The tool handles each line separately and updates in real time as you change settings or edit the input.

You control how the output looks just numbers, or a side-by-side mapping that shows the original and the converted value. It also includes options to ignore invalid lines and maximize the output space for large lists. Everything runs right in your browser and updates instantly with each keystroke.

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

Ignore non-ordinals
Maximize output

How to Use:

  • Paste or type one ordinal per line into the Input Ordinals box.
  • Or click Choose File to import a supported file.
  • Select Output format:
    • Integer only outputs just the number (e.g., 3)
    • Ordinal → Integer shows the mapping (e.g., 3rd → 3)
  • Toggle Ignore non-ordinals:
    • On: skips lines that don’t look like ordinal numbers
    • Off: keeps those lines as-is
  • Use Maximize output to expand the result area
  • The output updates instantly no button required
  • Use Copy Output or Export to File to save the result
  • Click Clear All to reset everything and start over

Supported file types: .txt, .csv, .tsv, .log, .json, .xml, .md, .ini, .yaml, .yml, .html, .htm, .css

What Convert an Ordinal to Integer can do:

This tool is great for cleaning or normalizing ordinal-labeled data like sorting results, ranking systems, list labels, or IDs. You can:

  • Remove ordinal suffixes from rank lists
  • Convert spreadsheet exports into numeric values
  • Clean up text files with mixed formatting
  • Work with lowercase or uppercase suffixes it’s case-insensitive
  • Choose how the output should display (minimal or mapped)

It processes large lists quickly, flashes the output to confirm changes, and handles every step on the same page with no reload.

Example:

Before:

1st
2nd
3rd
11th
42nd
invalid
FOURTH
101st

Output format: Ordinal → Integer Ignore non-ordinals: On

After:

1st → 1
2nd → 2
3rd → 3
11th → 11
42nd → 42
101st → 101

Common Use Cases:

Need to convert survey positions to numbers? Prepping a dataset with rank labels? Or maybe just stripping suffixes from an exported list? Convert an Ordinal to Integer handles it all no matter the suffix, case, or format.

Useful Tools & Suggestions:

If you’re decoding positions with Convert an Ordinal to Integer, try Convert an Integer to Ordinal to flip things around and check consistency. And if you’re sorting or ranking data, Enumerate Integers pairs well to give everything a numbered structure.