メインコンテンツへスキップ
Z

What is CSV?

CSV (Comma-Separated Values) is a plain-text format for tabular data, where each line is a row and fields are separated by commas. It is simple, compact and supported by every spreadsheet and data tool, but has no types, no nesting and no formal standard for quoting.

Each CSV line is a record; the first line is usually a header naming the columns. Fields containing commas, quotes or newlines are wrapped in double quotes. Everything is text — there are no numbers, booleans or nested structures.

CSV is ideal for exporting and importing flat, tabular data between spreadsheets, databases and analysis tools. For nested or typed data, JSON is a better fit.

CSV tools

よくある質問

NULLはどのように判定されますか?

空のセルはすべて(引用符なしの)NULLになります。NULLではなく空文字列として挿入したい場合は、そのセルに半角スペースを1つ入れるか、生成されたSQLを直接編集してください。

JSONBのようなPostgres固有の型にも対応していますか?

いいえ。列の型推定はINT、DECIMAL、TEXTのみに限られます。JSONBやARRAYなど拡張型が必要な場合は、CREATE TABLE文を手動で編集してください。

生成されたSQLは整形されますか?

各行が1つの文として出力されます。読みやすく整形したい場合は、結果を<a class="text-brand-600 hover:underline" href="/sql-formatter">SQL Formatter</a>に通してください。

関連ツールはありますか?

汎用的なJSON形式への変換には<a class="text-brand-600 hover:underline" href="/csv-to-json">CSV to JSON</a>を、XML出力には<a class="text-brand-600 hover:underline" href="/csv-to-xml">CSV to XML</a>をご覧ください。