LocalExcelTool
はじめる

CSV → Excel 変換

CSV を .xlsx に変換。貼り付けでもファイル選択でも可。ブラウザ内処理でアップロードなし(30MB)。

CSV → Excel 変換とは

CSV から Excel への変換は、カンマ区切りの行をセルに割り当てて .xlsx ブックを組み立てる処理です。数値に見える列は数値として、日付に見える列は文字列として書き込まれるため、取り込み後に書式を整える前提で使うのが実務的です。区切り文字は自動判定(カンマ / セミコロン / タブ)なので、ヨーロッパのセミコロン CSV や TSV もそのまま放り込めます。

🔒 処理はすべてブラウザ内で完結し、データは送信されません。

このツールの前提

処理場所
このページのブラウザ内(JavaScript / Canvas)
アップロード
なし — ファイルは端末の外に出ません
オフライン
ページを開いた後は通信不要

How the CSV is read

The parser is RFC 4180 compliant: it honours quoted fields, doubled quotes inside them, and line breaks that fall inside a quoted value. That last case is where naive converters break — an address field containing a newline is one row, not two, and it stays one row here.

The delimiter is detected from the first few lines rather than assumed. Comma, semicolon, tab and pipe are all recognised, which matters because Excel on a European locale writes semicolons by default. If detection guesses wrong on a one-column file, the separator can be set explicitly.

Encoding is read as UTF-8 first, then retried as Windows-1252 if the bytes are not valid UTF-8. This covers the two encodings that account for almost every mojibake report. A BOM at the start of the file is stripped so it does not become part of the first header cell — a bug that makes the first column impossible to reference by name later.

What the generated workbook contains

Every value is written as text unless it is unambiguously numeric. That is deliberate: converting 007 to 7, or 1-2 to a date, silently corrupts identifiers. Numbers with a single leading zero, values that look like dates, and long digit strings (order numbers, IBANs) stay text so they round-trip unchanged.

The first row becomes the header row and is frozen and bolded so it stays visible when scrolling. Column widths are estimated from the longest value in each column, capped so a single 400-character cell does not produce an unusable sheet.

The result is a real .xlsx written by SheetJS, not an HTML table with an .xls extension. Excel opens it without the «the file format and extension don't match» warning, and formulas, filters and pivot tables behave normally on top of it.

Fixing the two things that usually look broken

Numbers arrive left-aligned, which means Excel stored them as text. Either the source had quotes around every value, or a thousands separator was present. Use Data → Text to Columns with the comma delimiter, or VALUE() on a helper column, to convert them.

Dates arrive as text in an ambiguous format. 03/04/2026 is March 4th in the US and April 3rd in most of Europe, and no converter can tell which you meant. Convert with DATEVALUE plus an explicit format, or split the parts and rebuild with DATE(year, month, day).

If every row landed in column A, the delimiter was not what the file actually used. Re-run with an explicit delimiter; if the file is fixed-width rather than delimited, no delimiter will help and the data needs a fixed-width import in Excel itself.

使い方

  1. 1.CSV を貼り付けるか .csv を選ぶ
  2. 2.区切り文字を確認(通常は自動で問題なし)
  3. 3.「実行」→ .xlsx をダウンロード

他の方法との比較

同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。

観点このツールサーバー側の変換サービス
ファイルの処理場所このページのブラウザ内ベンダーのサーバー(アップロード後)
アカウント不要多くの場合必要(無料枠の制限解除に登録を求める)
無料で扱えるサイズサイズ制限なし(回数制限もなし)数ファイル/時間、または 5〜10MB 程度で課金 wall
料金無料。Pro は月 $9(大きいファイルと AI 機能のみ)サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点)
オフライン一度開けば通信不要不可
20MB を処理し始めるまで待ち時間なし(アップロードが無い)アップロードが支配的(10Mbps 上りで約 16 秒)
保証できないこと数式は計算済みの値になり、結合セルと書式は失われます同じ(変換の原理は変わらない)

サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。

よくある質問

貼り付けとファイル選択のどちらでも使えますか?

はい。上の入力欄に CSV テキストを貼り付けるか、.csv ファイルを選んでください。ファイルを選んだ場合はそちらが優先されます。

区切り文字がカンマじゃない場合は?

「自動」のままで構いません。1 行目を見てカンマ・セミコロン・タブのうち最も多いものを区切り文字と判断します。手動でカンマ / セミコロンを指定することもできます。

文字化けしませんか?

UTF-8 の CSV はそのまま読めます。Excel で保存した日本語 CSV(Shift_JIS)は文字化けするため、Excel 側で「CSV UTF-8」として保存し直してください。

数値や日付はどう入りますか?

数値として解釈できる値は数値セルに、それ以外は文字列セルになります。日付は文字列として入るので、必要なら Excel 側で列の書式を日付に変えてください。

この変換で失われるもの

表計算の変換は本質的に不可逆です。ワークブックは数式・書式・結合セル・複数シートを持ち、CSV は行のテキストしか持てません。このツールは値と並び順を保持し、再計算はせず、見た目は意図的に捨てます。サーバー不要で動く理由であり、変換後のファイルが元と同じ見た目にならない理由でもあります。

その他の表計算・文書