Convert date format

100% local. Your text never leaves this browser tab.

Paste a list of dates and every one is reformatted at once. This page turns MM/DD/YYYY into YYYY-MM-DD, the ISO 8601 order that sorts correctly as plain text. It uses one pattern rule you can adjust for any order, and it runs entirely in your browser.

The rule

One pattern reorders every date

The tool above uses a single pattern rule: capture the three numbers, then output them in the order you want.

Find (pattern):   (\d{1,2})/(\d{1,2})/(\d{4})
Replace with:     $3-$1-$2

MM/DD/YYYY  ->  YYYY-MM-DD   (used above)

Same idea, other orders:
  DD/MM/YYYY -> YYYY-MM-DD :  replace with  $3-$2-$1
  YYYY-MM-DD -> DD/MM/YYYY :  find (\d{4})-(\d{2})-(\d{2}), replace $3/$2/$1

$1, $2 and $3 are the three captured numbers. Reorder them however your target format needs.

Why ISO order

Year first, so it sorts

ISO 8601 sorts right

Putting the year first (YYYY-MM-DD) means dates sort chronologically as plain text, which is why databases, logs and file names prefer it.

Works on a whole list

Every line that matches the pattern is converted in one pass, so you can paste a column of dates and reformat them all at once.

Any order you need

Swap the $1, $2 and $3 in the replacement to output day, month and year in whatever order your target expects.

The Windows app

Put it on a hotkey

☕ Every date in the right format on a hotkey, for the price of a coffee. Yours forever.

Download this exact setup as a ready-made Date to ISO profile. Give it a global hotkey in the Windows app and any list of dates you copy is reformatted the instant you paste. Same engine as above, entirely offline.

Get the Windows app →
Pay once, €3.39, no subscription. If the app doesn’t open, the profile is saved to your downloads, just import it.
FAQ

Questions, answered plainly

How do I convert a date to YYYY-MM-DD?

Paste your dates above and each MM/DD/YYYY date becomes YYYY-MM-DD instantly. The tool uses one pattern rule you can copy, or export as a profile for the Windows app.

How do I change the output order?

Reorder the capture groups in the replacement: $1 is the first captured number, $2 the second and $3 the third, so $3-$1-$2 gives year, month, day.

Why use YYYY-MM-DD instead of MM/DD/YYYY?

YYYY-MM-DD is the ISO 8601 standard and it sorts in date order when treated as plain text, unlike MM/DD/YYYY. It also avoids the confusion between US and European day and month order.

More generators: GUIDs, date formats, random strings and today's date.