📅

CSV Date Normalizer

Convert one CSV date column to a consistent format

No file selected.

CSV Date Normalizer — what it does

Point the tool at a date column and it rewrites every value into one consistent output format, with a choice of keeping or blanking anything it cannot parse. Mixed date formats are the classic result of merging exports from different systems, and they quietly break sorting, filtering and every date calculation downstream.

Worked example

An invoice list whose dates came from three different systems, rewritten as YYYY-MM-DD with invalid dates set to Leave blank. The invoice_date column was selected.

Input — invoices.csv

invoice,customer,invoice_date
INV-2301,Acme Ltd,2026-01-04
INV-2302,Borealis GmbH,04/01/2026
INV-2303,Cedar Co,15/03/2026
INV-2304,Delta LLC,"March 7, 2026"
INV-2305,Echo Inc,2026.02.11
INV-2306,Foxtrot SA,TBC

Output — invoices-dates.csv

invoice,customer,invoice_date
INV-2301,Acme Ltd,2026-01-04
INV-2302,Borealis GmbH,2026-04-01
INV-2303,Cedar Co,2026-03-15
INV-2304,Delta LLC,2026-03-07
INV-2305,Echo Inc,2026-02-11
INV-2306,Foxtrot SA,

04/01/2026 became 2026-04-01: a slash date whose first number is 12 or less is read as month/day/year, and only a first number above 12 (15/03/2026) is read as day first. TBC could not be parsed and was blanked.

When this tool helps

  • Standardising a column that mixes 03/04/2026, 2026-04-03 and 3 Apr 2026 after combining several exports.
  • Converting dates to ISO format before importing into a database or a tool that expects year-month-day.
  • Finding malformed entries by setting unparseable values to blank and filtering for the gaps.

How to use it

  1. Choose the CSV file.
  2. Select the date column and the output format.
  3. Decide what happens to invalid dates: keep the original or leave it blank.
  4. Process the file and download the normalised CSV.

Accuracy, limits, and good practice

  • Ambiguous numeric dates are the real hazard: 03/04/2026 is 3 April in most of the world and 4 March in the United States, and no tool can tell which was intended.
  • ISO format sorts correctly as plain text, which is why year-month-day is the safest choice for storage and interchange.
  • Keeping unparseable originals preserves information for manual review; blanking them makes the problem rows easy to find.

Frequently asked questions

Does it convert time zones?

No. Dates are treated as calendar dates. Timestamps with offsets need the Unix timestamp or time zone converter instead.

Will Excel keep the format after I open the file?

Excel re-interprets date-looking text on open. Import as text, or check the column format afterwards, before saving over your normalised file.

What about two-digit years?

They are inherently ambiguous. Review those rows manually rather than trusting any automatic century assignment.

Which input formats are recognised?

Year-first dates with -, / or . (2026-01-04, 2026.02.11), day-or-month-first dates with a four-digit year, and anything the browser's own date parser accepts, such as March 7, 2026. Values with surrounding spaces are trimmed first.

What is the output file called, and are other columns touched?

The source name with -dates added (invoices.csv becomes invoices-dates.csv), written with a UTF-8 byte-order mark. Only the chosen column is rewritten; every other column is copied through unchanged.

Related tools on this site

Everything above runs inside this page. CSV Date Normalizer needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

CSV 日期格式統一能做什麼

指定一個日期欄位,工具會把每個值改寫成一致的輸出格式,並可選擇無法解析的值要保留原樣或留白。合併不同系統的匯出檔後,日期格式混雜是最典型的結果,也會悄悄破壞後續的排序、篩選與所有日期運算。

實際範例

發票清單的日期來自三套不同系統,統一改寫成 YYYY-MM-DD,無效日期選「留白」。選的是 invoice_date 欄。

來源:invoices.csv

invoice,customer,invoice_date
INV-2301,Acme Ltd,2026-01-04
INV-2302,Borealis GmbH,04/01/2026
INV-2303,Cedar Co,15/03/2026
INV-2304,Delta LLC,"March 7, 2026"
INV-2305,Echo Inc,2026.02.11
INV-2306,Foxtrot SA,TBC

得到:invoices-dates.csv

invoice,customer,invoice_date
INV-2301,Acme Ltd,2026-01-04
INV-2302,Borealis GmbH,2026-04-01
INV-2303,Cedar Co,2026-03-15
INV-2304,Delta LLC,2026-03-07
INV-2305,Echo Inc,2026-02-11
INV-2306,Foxtrot SA,

04/01/2026 變成 2026-04-01:斜線日期的第一個數字不大於 12 時會被當成月/日/年,只有第一個數字大於 12(15/03/2026)才當成日在前。TBC 無法解析,被清成空白。

什麼時候用得上

  • 合併多份匯出檔後,統一混有 03/04/2026、2026-04-03 與 3 Apr 2026 的欄位。
  • 在匯入資料庫或要求年-月-日格式的系統前,先轉成 ISO 格式。
  • 把無法解析的值設為空白,再篩出空格,快速找出格式異常的資料。

使用步驟

  1. 選擇 CSV 檔案。
  2. 選定日期欄位與輸出格式。
  3. 決定無效日期要保留原值或留白。
  4. 執行處理並下載統一格式後的 CSV。

精確度、限制與實務建議

  • 真正的風險是有歧義的純數字日期:03/04/2026 在多數國家是 4 月 3 日,在美國卻是 3 月 4 日,任何工具都無法判斷原意。
  • ISO 格式以純文字排序即為正確順序,這也是年-月-日最適合儲存與交換的原因。
  • 保留無法解析的原值可留下人工檢查的線索;設為空白則讓問題資料更容易被找出來。

常見問題

會轉換時區嗎?

不會,日期一律視為日曆日期。帶時差的時間戳請改用 Unix 時間戳或時區轉換工具。

用 Excel 開啟後格式會保持嗎?

Excel 開啟時會重新判讀看起來像日期的文字。建議以文字方式匯入,或在覆蓋存檔前先確認欄位格式。

兩位數年份怎麼處理?

本質上就有歧義,建議人工檢視這些列,不要依賴任何自動判定世紀的規則。

能辨識哪些來源格式?

年在前、以 -、/ 或 . 分隔的日期(2026-01-04、2026.02.11)、年份為四位數的日前或月前日期,以及瀏覽器本身日期解析器接受的寫法,例如 March 7, 2026。值前後的空格會先被去掉。

產生的檔案叫什麼?其他欄位會被動到嗎?

來源檔名加 -dates(invoices.csv 變成 invoices-dates.csv),開頭帶 UTF-8 BOM。只有選定的欄位會被改寫,其餘欄位原樣複製。

本站相關工具

以上步驟全部在這個頁面內完成,CSV 日期格式統一 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。