About this tool
Convert CSV, TSV or pasted table text to Excel (XLSX) with UTF-8, GB18030/GBK or UTF-16 encoding. Values are stored as text, so leading zeros and long IDs are never rewritten.
Typical uses
- Fix a garbled CSV export by converting it to Excel
- Keep long ID and order numbers intact
- Create an XLSX file from pasted table data
How to use
Upload CSV/TSV/TXT and choose UTF-8, GB18030/GBK or UTF-16 encoding and a delimiter, or paste text.
Read and inspect the preview, convert and download XLSX, or continue to table cleanup.
Text: 5 MB, 20,000 records, 200 columns and 200,000 cells. XLSX output: 10 MB. All values are stored as text, preserving leading zeros and long IDs without executing formulas. Headings are bold and frozen when enabled.
What a wrong encoding choice looks like
“File encoding” appears only in “File” mode and offers UTF-8, GB18030 / GBK, UTF-16 LE and UTF-16 BE; pasted text is already text in the browser and needs no choice. Decoding is strict: an invalid byte raises an error instead of being silently replaced. The table shows the same short text saved seven ways and the real result under each option:
| Actual file encoding · text | UTF-8 | GB18030 / GBK | UTF-16 LE | UTF-16 BE |
|---|---|---|---|---|
| UTF-8 · José | “José” | “Jos茅” | ✗ encoding mismatch | ✗ encoding mismatch |
| UTF-8 · 张三 | “张三” | “寮犱笁” | “볥�覸” | “�ꃤ뢉” |
| UTF-8 + BOM · José | “José” | ✗ BOM differs | ✗ BOM differs | ✗ BOM differs |
| GBK · 张三 | ✗ encoding mismatch | “张三” | “엕” | “헅죽” |
| UTF-16 LE + BOM · José | ✗ BOM differs | ✗ BOM differs | “José” | ✗ BOM differs |
| UTF-16 LE · José | ✗ encoding mismatch | ✗ encoding mismatch | “José” | “䨀漀猀�” |
| Windows-1252 · José | ✗ encoding mismatch | ✗ encoding mismatch | “潊�” | “䩯珩” |
- The case to watch is a UTF-8 file read as GB18030: there is no error, just mojibake such as “Jos茅” or “寮犱笁”, because most UTF-8 byte sequences are also valid GB18030. Always check accented letters and CJK text in the preview.
- The other way round, a GBK file read as UTF-8 stops with “Encoding mismatch. Choose the correct encoding and read again.” Choose GB18030 / GBK instead.
- When the file starts with a BOM, the BOM decides; any other choice gives “The BOM differs from the selected encoding. Choose the matching UTF-8 / UTF-16 encoding.”
- In a UTF-16 file without a BOM every Latin letter is followed by a zero byte, so reading it as UTF-8 or GBK produces NUL characters and the tool refuses. Picking the wrong byte order (BE for LE) can, however, give CJK-looking garbage such as “䨀漀猀�” without an error. A file with an odd number of bytes cannot be UTF-16 and is refused.
- Windows-1252 (old Western European encoding) stores é as the single byte E9; none of the four options reads it correctly: UTF-8 and GB18030 raise an error, UTF-16 gives garbage. Re-save the file as UTF-8 in a text editor first.
Delimiters and irregular rows
“Input delimiter” defaults to comma. Choosing a file whose name ends in .tsv switches it to Tab; .csv and .txt files are not inspected. A wrong delimiter usually gives no error, only the wrong number of columns, so read the preview. Results below come from the tool's parser (⇥ = Tab, ↵ = line break, ∅ = empty cell):
| Input | Delimiter | Result | Notes |
|---|---|---|---|
| name⇥city↵Ada⇥Lyon | Comma (,) | [name⇥city] [Ada⇥Lyon] | Tab-separated text read as comma: each line lands in one column |
| name;price↵Tee;12,50 | Comma (,) | [name;price | ∅] [Tee;12 | 50] | Semicolon file read as comma: the decimal 12,50 is split and the columns do not line up |
| name;price↵Tee;12,50 | Semicolon (;) | [name | price] [Tee | 12,50] | With the semicolon selected it reads correctly |
| id,size↵1,15" screen | Comma (,) | [id | size] [1 | 15" screen] | A double quote inside an unquoted field is kept as is |
| id,note↵1,"open | Comma (,) | Invalid CSV. Check quoting and the delimiter. | An unclosed quote stops with an error; check the source |
| a,b,c↵1,2 | Comma (,) | [a | b | c] [1 | 2 | ∅] | Short rows are padded with empty cells to the width of the widest row |
| a,b↵↵1,2↵ | Comma (,) | [a | b] [∅ | ∅] [1 | 2] | An interior blank line stays as a row of empty cells; the final line break adds no extra row |
To put a delimiter, double quote or line break inside a cell, wrap the whole field in double quotes and double the inner quotes, as RFC 4180 describes: "say ""hi""". File and paste mode use the same parser, with a 5 MB text limit.
What the generated XLSX contains
“Load example” fills in the three rows below. Opened in Excel after conversion, every cell is a text cell: 000123 keeps its leading zeros, the 20-digit code is not turned into scientific notation, and =1+1 is just text, not a formula:
| A | B | C |
|---|---|---|
| name | code | notes |
| Ada | 000123 | hello, world |
| 小明 | 12345678901234567890 | =1+1 |
- The workbook has one sheet named Data; every column is 22 wide. With “First row contains headings (XLSX / cleanup)” ticked the first row is bold and frozen so it stays visible while scrolling; unticked, it is an ordinary row.
- The download is named after the source without its last extension: export 2024.csv → export 2024.xlsx; orders.tsv → orders.xlsx; data.v2.txt → data.v2.xlsx; pasted text → converted.xlsx.
- Every cell is a text cell, not a number. Convert the columns you need to calculate with back to numbers in your spreadsheet program, or standardize them first with the field standardizer.
- Inside an XLSX, _xHHHH_ stands for a control character. The tool escapes source text that looks like that notation and encodes real control characters: _x000D_ → _x005F_x000D_, a\u0007b → a_x0007_b. Reading the file back gives the original text.
| Message | Cause and fix |
|---|---|
| Limit: 20,000 rows, 200 columns and 200,000 cells including headers. | More than 20,000 records plus one heading row, 200 columns or 200,000 cells; split the file |
| A cell cannot exceed 32,767 characters. | A cell is longer than 32,767 characters, which is also the per-cell limit Microsoft publishes for Excel |
| A cell contains an incomplete Unicode character. Correct it before exporting XLSX. | The text contains half of a surrogate pair, such as a cut-off emoji, usually because the source was truncated mid-character |
| Expanded table data exceeds 50 MB. Reduce data or export smaller batches. | The sheet XML would exceed 50 MB; reduce the data |
| Output exceeds 10 MB. Use smaller batches. | The XLSX would be larger than 10 MB |
| The table has no content to convert. | The file or text contains only blanks |
Sources
Frequently asked questions
What if characters look garbled?
Choose the correct encoding; older Chinese systems often export GB18030/GBK. Convert once the preview looks right.
Why are all values text?
To protect leading zeros and numbers longer than 15 digits, everything is stored as text and formulas are not executed.
Size limits?
Text up to 5 MB, 20,000 records and 200 columns; XLSX output up to 10 MB.
Suggest an improvement to this tool
Missing an option, something awkward to use, or a wrong result? Let us know.