Keep identifier fields as text. Table Tidy preserves 00123, but a spreadsheet can still reinterpret it when you open the downloaded CSV. Use that app’s text import controls for the destination columns.
Before you start
An identifier is not a quantity. Removing zeros from an account code can change its meaning even though a spreadsheet considers the resulting number equivalent. The risk often appears after a perfectly valid CSV leaves one tool and is opened by another application that guesses column types.
The practice file uses fictional records with leading-zero IDs and postal-style codes. The cleanup removes edge spaces only. It does not add apostrophes, formulas or formatting instructions to force a spreadsheet display. Those techniques change the data or depend on the receiving application, so explicit text import is the clearer choice.
leading-zero-ids.csv · Original Deskcraft example · Reusable for practice
The walkthrough
Inspect the original text
Download leading-zero-ids.csv and view it in a plain-text editor. The first ID is 00123 and the first postal field is 02108. Record those exact strings before opening the file in an app that might infer numeric types.
Load without type conversion
Open the file in Table Tidy with Comma selected. Keep duplicate removal and blank-row removal off. The preview should show the full ID strings because this tool stores cells as text.
Trim only the accidental spaces
Enable Trim field edges and clean the table. This removes spaces around the first ID while retaining its zeros. It does not convert the field into a number.
Import the result as text
Download the cleaned CSV. In your spreadsheet application, use the data import workflow and set the identifier columns to text before loading. The exact controls vary by app and version; double-clicking the file may accept automatic type guesses.
Check the saved workbook too
Confirm the IDs after import, then save and reopen your workbook. A display format that adds zeros can hide a numeric underlying value. For identifiers, verify that the actual cell value is the intended string.
Before & after, in practice
| What we checked | Starting comparison | After the change |
|---|---|---|
| Data rows | 2 | 2 |
| Columns | 3 | 3 |
| Result | Parsed successfully | Parsed successfully |
Recorded in Chrome 153.0.8010.54. These are measurements of this practice file, not guaranteed results for every file or browser.


Download the actual output recorded for this walkthrough.
When it goes wrong
Zeros are present in CSV but gone in the spreadsheet
The receiving application inferred a number. Re-import from the unchanged CSV and choose text for those columns.
Adding quotes did not prevent numeric conversion
CSV quotes delimit fields; they are not a universal instruction to treat a field as text.
A custom number format looks correct
It may only change the display. Check the underlying value before exporting or matching IDs.
The final check
Expect two records. The first ID must be exactly 00123 and its postal field exactly 02108 in the downloaded CSV. Verify the same values after the destination import; preserving them in one tool does not control another app’s automatic type detection.
Further reading & method
These links explain the underlying formats or browser behavior. The steps, examples, screenshots and measured results above come from the Deskcraft tools. Screenshots do not depict Excel, Photoshop or another commercial application.
See how these guides are made. Found an error? Send a correction with the guide title and the step you tried.