Excel XLSX & CSV Encoding Guide: Fixing Garbled Characters with UTF-8 BOM
Stop Microsoft Excel from garbling Chinese, Japanese, Korean, and European accented CSVs—learn how UTF-8 BOM works and convert XLSX/CSV safely locally.
Double-clicking a UTF-8 CSV without a Byte Order Mark (EF BB BF) causes Windows Excel to interpret bytes using legacy ANSI codepages (corrupting accents and CJK characters). Prepending a UTF-8 BOM—or exporting a native .xlsx workbook—fixes Excel display permanently.
Why double-clicking plain UTF-8 CSVs breaks in Excel
Unlike modern code editors or browser parsers that default to UTF-8, desktop Microsoft Excel relies on the operating system's legacy codepage (such as Windows-1252 or GBK) when opening .csv files directly unless it detects the 3-byte 0xEF 0xBB 0xBF UTF-8 BOM signature.
Every DataTo CSV export tool (json-to-csv, parquet-to-csv, sqlite-to-csv, excel-to-csv, jsonl-to-csv) includes an addUtf8Bom toggle enabled by default so Excel opens CJK and accented characters cleanly.
Handling multi-sheet Excel workbooks privately
Financial models and HR workbooks should never be uploaded to random online converters. DataTo Excel to JSON and Excel to CSV run @e965/xlsx inside local Web Workers, letting you extract either the first worksheet or every sheet as a ZIP archive.
Tools used in this guide
Data Convert →Extract Excel worksheets into UTF-8 BOM CSV (or a multi-sheet CSV ZIP archive) completely inside browser RAM.
Excel to JSONExtract first or all worksheets from Excel workbooks into typed JSON arrays locally in browser RAM via @e965/xlsx.
Flatten nested JSON arrays into RFC-4180 CSV with delimiter selection and default UTF-8 BOM for Microsoft Excel.
JSON to ExcelGenerate real downloadable .xlsx Excel workbooks with flattened columns and auto-fitted column widths locally in RAM.
Related formats
Related Comparisons
Frequently asked questions
Should I enable UTF-8 BOM when importing CSV into PostgreSQL or Python?
Keep UTF-8 BOM enabled for Excel recipients, and disable Prepend UTF-8 BOM when generating CSV for strict UNIX CLI scripts or databases that expect raw header names.
Can DataTo generate real .xlsx workbooks from JSON or CSV?
Yes. JSON to Excel creates native OpenXML .xlsx files with auto-sized column widths directly in browser memory.
Does Excel to CSV handle semicolon European CSV preferences?
Yes. Switch the delimiter selector to comma ,, semicolon ;, tab \t, or pipe | anytime.
Authoritative References
More engineering guides
Compare TOML 1.0, YAML 1.2, and JSON for Kubernetes, CI pipelines, Rust Cargo.toml, Python pyproject.toml, and API configs—and convert locally.
XML Attributes to JSON: Lossless @_ Prefix & Round-Trip GuideConvert XML, SVG, RSS, SOAP, and Maven pom.xml to typed JSON with @_ attribute preservation, XXE-safe pure-JS Web Worker parsing, and clean JSON to XML.
Structural JSON Diff & Primary-Key CSV Diff for Data ValidationCompare API payloads and database table exports cleanly using key-order-normalized structural JSON diff and primary-key-aligned CSV diff locally.
Convert HuggingFace Parquet Files to JSONL & CSV Without PythonConvert HuggingFace Parquet shards to JSONL, JSON, or UTF-8 BOM CSV locally in browser RAM using hyparquet and sql.js WASM—zero Python or uploads required.