CSV Encoding Fix

Convert CSV files that show garbled text in Excel to UTF-8 with BOM or Shift_JIS, with automatic encoding detection. Mojibake that was already saved, such as “日本語”, can usually be restored too.

On-device・No uploadMobile friendlyWorks offline

Your files and input are processed only inside your browser on this device and are never uploaded to our servers.

Drop files here (multiple allowed)

or

Accepts: CSV / TSV / TXTUp to 100 MB per filePaste (Ctrl+V) also works

How to use

  1. customers.csvencoding auto-detected

    Add a garbled CSV

  2. customers.csvfixed rows boxed

    Detect the encoding and fix it

  3. customers_UTF8.csvShift_JIS → UTF-8

    Save in a format Excel can open

Detect the character encoding of a garbled CSV, fix it, and save
  1. Drop garbled CSV, TSV or TXT files, or click “Choose files” (several at once is fine).

  2. Check the detected encoding and the converted preview. If the text is still unreadable, pick the candidate under “Read the file as” whose text reads correctly.

  3. Choose the encoding to save as. For opening Japanese text in Excel, start with “UTF-8 with BOM”. Use “Shift_JIS” when the receiving system requires it, and check the warnings about characters it cannot represent. Choose plain “UTF-8” when the system requires no BOM. Change line endings if needed.

  4. Garbled text such as “縺薙s…” or “æ—¥…” is repaired automatically. Highlighted lines were repaired or changed.

  5. Download the file, or all files as a ZIP.

What it does

Automatic detection, with candidates to compare

Combines BOM, UTF-8 validity and how natural the decoded text looks. For tricky files, the first lines of each candidate are shown side by side so you can click the one that reads correctly.

Restores saved mojibake

Recognises three common patterns — UTF-8 opened as Shift_JIS and saved (縺薙s縺ォ縺。縺ッ), UTF-8 read as Western/Windows-1252 (日本語) and Shift_JIS read as Western (ƒeƒXƒg) — and restores them line by line. Characters already lost are shown as “�”.

Warns about characters the target cannot hold

When converting to Shift_JIS, emoji and other unsupported characters are listed with their line numbers, so nothing silently turns into “?”.

Converts without touching content

The CSV is not re-parsed as a table, so quotes, delimiters and in-cell line breaks are kept. Only the encoding, chosen line endings and repaired/normalised characters change.

Line endings and Unicode normalisation

Unify to CRLF (Windows) or LF (Mac/Linux), and join detached dakuten marks common in Mac files (Unicode NFC).

Use cases

  • A UTF-8 CSV exported from a system shows garbled text in Excel
  • Import a Shift_JIS CSV saved by Excel into a web service or Google Sheets (which expect UTF-8)
  • Restore a CSV that was saved after it had already been garbled
  • Japanese characters made on a Mac show detached dakuten marks (“か゛”)
  • Unify the encoding and line endings of many CSV files at once

Supported formats

Input

CSV / TSV / TXT and other text filesUTF-8 (with or without BOM)Shift_JIS (CP932)EUC-JPUTF-16 LE / BEISO-2022-JP

Output

UTF-8 with BOMUTF-8Shift_JIS (CP932)EUC-JPUTF-16 LE (with BOM)ZIP (multiple files)

Capability matrix

FeatureSupportNotes
Automatic or manual source encodingSupported—
Convert to UTF-8 (BOM), Shift_JIS, EUC-JP, UTF-16Supported—
Restore saved mojibake (縺薙s, æ—¥, ƒeƒX)PartialCharacters lost at garbling time cannot return
Line-ending conversion, NFC normalisationSupported—
Batch conversion with ZIP downloadSupported—
Restore characters saved as “?” or “・”Not supportedThe original data no longer exists
Excel files (.xlsx)Not supportedSave as CSV with “Excel Cleanup”

Limits & notes

  • Up to 100 MB per file. The preview shows the first 200 lines (conversion applies to the whole file).
  • Mojibake repair covers three typical patterns. Text garbled several times, or saved with “?”/“・” substitutions, cannot be restored.
  • Detection uses the first 256 KB. For files that switch encoding part-way, choose the encoding that reads correctly yourself.

Privacy & safety

Reading, detection and conversion all happen in your browser. Your files are never sent to or stored on a server.

FAQ

Why does my CSV look garbled in Excel?
Japanese Excel reads CSV files without a BOM as Shift_JIS, and other locales use their own legacy encoding, so a UTF-8 CSV shows mojibake. Converting it to “UTF-8 with BOM” makes Excel open it correctly with a double-click.
Can text like “日本語” be fixed?
Usually yes. It is UTF-8 text that was read as Windows-1252 and saved. The tool detects it and restores the original characters automatically.
Should I save as Shift_JIS or UTF-8?
Both open correctly in Japanese Excel on Windows. Choose UTF-8 with BOM if the data has emoji or characters outside Shift_JIS, or if it goes into a web service or Google Sheets.
What is a BOM?
A 3-byte marker at the start of a file saying “this is UTF-8”. Excel uses it to open CSV files as UTF-8. Some programs expect no BOM — choose plain “UTF-8” for those.
The text is fixed, so why does “00123” become “123”?
That is a separate issue: Excel reads the column as numbers when it opens the file and drops the leading zeros. This tool does not change the content, so the zeros are still in the saved CSV. Import it with Data → From Text/CSV and set that column to Text.
Are my files uploaded?
No. Everything runs in your browser and your files never leave your device.

CSV Studio

Open CSV files that are slow or garbled in Excel and view, search and edit them right away in your browser. Combine, split and save as CSV (UTF-8 with BOM, Shift_JIS), Excel or JSON on one screen.

No upload

Excel Cleanup

Tick what to fix and clean up spaces, character widths, dates and numbers across a whole Excel or CSV file at once. Changed cells are highlighted, and you can save as Excel or CSV.

No upload

Excel Merge

Combine sheets from several Excel or CSV files: stack their rows into one table, or keep them as separate sheets in one workbook. Columns are aligned by header name automatically.

No upload

Archive Filename Fix — ZIP Mojibake & Mac Clutter Repair

Names garbled when a ZIP made on Japanese Windows is opened on a Mac, or __MACOSX folders and split voiced marks when a Mac ZIP is opened on Windows: drop the ZIP and both are fixed. Names are rewritten as UTF-8 and clutter is removed; compressed data is copied without recompression. See the names before and after side by side. Several ZIPs at once, all on your device.

No upload

Chart Maker

Open a CSV or Excel file, or paste a table copied from a spreadsheet, and make bar, line, area, pie, scatter or combo charts. Save PNG (with scale) or SVG. Your table is never sent off your device.

No upload

Subtitle Studio

Open a subtitle file (SRT, WebVTT, ASS/SSA, SBV, TTML or LRC), edit it in a list and convert it to another format. Shifting, two-point stretching, frame-rate fixes and checks for overlaps and reading speed all run in your browser.

No upload

Last updated: