# Voorloopnullen en lange getallen uit CSV behouden

> Postcodes, artikelnummers en lange ID's houden elk cijfer; bedragen blijven getallen.

Human page: https://unmakelabs.com/nl-nl/csv-voorloopnullen/. This is the version for AI agents.

## What it does

Voorloopnullen behouden in Excel: behoud elke voorloopnul en elk cijfer Postcodes, artikelnummers en lange ID's houden elk cijfer; bedragen blijven getallen.

## Hoe Excel cijfers kwijtraakt

Bij dubbelklikken maakt Excel van alles wat op een getal lijkt een getal: 0123 wordt 123, een EAN wordt 8,71234E+12, en een 16-cijferig kaart- of ordernummer verliest voorgoed zijn laatste cijfer, omdat Excel er maar 15 bewaart. Deze tool herkent codes (voorloopnullen, 12+ cijfers van één lengte, +telefoonnummers) en bewaart ze als tekst.

## Wat u krijgt

Een Excel-bestand met echte getallen om op te tellen, echte datums om te sorteren en codes die elk cijfer houden: postcodes en artikelnummers met hun voorloop-0, EAN, IBAN en 16-cijferige ID's precies zoals geschreven. De kopregel staat vast; inforegels boven de tabel blijven staan. Of een CSV die uw Excel goed leest, of een gewone UTF-8-CSV voor een import.

## Facts

- **Herstelt:** Codering (UTF-8, Windows-1252, UTF-16, Mac, kapotte ‘Ã«’), scheidingsteken, decimale komma of punt, datums, voorloopnullen, lange getallen
- **Bewaart:** Excel .xlsx, CSV voor Excel, gewone UTF-8-CSV, JSON; Excel terug naar CSV
- **Controleert:** Elke cel uit het Excel-bestand teruggelezen, geen cijfer kwijt, rijen en kolommen geteld
- **Privacy:** Gelezen op uw apparaat; niets geüpload

## How a person does it

1. **Zet de CSV neer.** Of tik op CSV-bestand kiezen. Een bank-, webshop- of open-data-export van een paar MB duurt ongeveer een seconde.
2. **Vergelijk voor en na.** Boven: wat Excel bij dubbelklikken laat zien. Daaronder: de herstelde tabel, elke gewijzigde cel gekleurd. Pas zo nodig een kolomtype aan onder Aanpassen.
3. **Download het Excel-bestand.** Tik op Downloaden. De pagina heeft het bestand al teruggelezen en elke cel gecontroleerd.

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/nl-nl/csv-voorloopnullen/?src=https://unmakelabs.com/apps/csvfix/samples/marches-publics.csv`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: none: the file never goes in a link. `?src=<public CSV URL>` opens a file the visitor's browser can fetch (CORS).

Embed: `<iframe src="https://unmakelabs.com/embed/csvfix/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Send your own file (live)

`POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/csv_fix/jobs?wait=25` with the file as multipart `file` (or JSON `file_base64` + `filename`, or `file_url`), API tool `csv_fix`: Fix a CSV for Excel (encoding, separator, decimals, dates, leading zeros). The same engine code as this page. No sign-up; Free: 5 full results per IP per day without a key (resets at 00:00 UTC); POST /v1/keys gives an instant key with 25 more full results (one-time, not renewed); each accepted correction adds 1 free call (up to 20 a month). Options (JSON in `options`): `locale`: e.g. de-de: separator/decimal of the CSV-for-Excel file and the date-order fallback (default en-us); `encoding`: force an encoding (utf-8, windows-1252, iso-8859-15, windows-1250, macintosh, utf-16le); `delimiter`: force the separator (; , | or a tab); `header`: header row index, -1 for none; `types`: per column: {"3": "text"|"number."|"number,"|"DMY"|"MDY"}.

```bash
# CSV to a typed .xlsx + report
curl -s -F "file=@export.csv" -F 'options={"locale":"de-de"}' "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/csv_fix/jobs?wait=25"
```

## Good to know

De herkenning gaat automatisch, met de reden onder Details. Hebben datums alleen dagen tot 12, dan is de volgorde (dag of maand eerst) geschat uit de rest van het bestand; de kolom is gemarkeerd en met één tik om te zetten. Getest op 74 echte openbare CSV-exports uit 18 landen en 200 gegenereerde bestanden: elke cel uit het Excel-bestand teruggelezen, geen cijfer kwijt.

## Not done by this tool

- Verandert uw gegevens niet: leest ze goed, schoont of ontdubbelt niet
- Opent geen bestanden boven 50 MB in de browser
- Leest geen pdf's (gebruik pdf-tabellen naar Excel) of oude .xls
- Voegt geen meerdere CSV-bestanden samen

## Value

Fixes a CSV so it opens right in Excel, in the browser: reads the encoding from the bytes (UTF-8 with or without BOM, UTF-16, Windows-1252, ISO-8859-15, Windows-1250, Mac Roman) and repairs double-encoded UTF-8 (Ã¼ -> ü); finds the separator (; , tab |) from consistent field counts with quotes respected, and the header row under junk lines; types each column: numbers in any writing (1.234,56 / 1,234.56 / 1'234.50 / 1 234,5 / (12.30) / 12,50- / 5 % / currency), dates (ISO, d.m.y, d/m/y vs m/d/y decided per column, 2-digit years), and text that must stay text (leading zeros, 12+ digit codes such as EAN, SIRET, IBAN, +phone numbers). Shows the file as Excel shows it on a double-click next to the fixed table with every changed cell marked. Saves .xlsx with typed cells (numbers, dates, protected text), CSV for Excel in the visitor's language, plain UTF-8 CSV, Windows-1252 CSV or JSON; also turns an .xlsx into a CSV for an import system. Before download the page reads its own .xlsx back and compares every cell, checks that no digit was lost and that rows and columns match; otherwise the download is blocked. Nothing is uploaded. Free, no sign-up.

## When it fits

- Someone double-clicks a bank, shop, CRM or open-data CSV and Excel shows one column, Ã¼ instead of ü, dates in place of numbers or postcodes without their leading 0.
- Someone needs a CSV export from another country (semicolon vs comma, decimal comma vs point) as a working spreadsheet.
- Someone has an Excel sheet and needs a CSV with a given separator, decimal mark and encoding for an import system.

### When not

- Cleaning, deduplicating or reshaping data (the tool reads data right; it does not change it).
- PDF tables (use the PDF tables tool) or old binary .xls files; files over 50 MB in the browser.

## Why use it instead of the alternatives

- Nothing to install: the tool opens a public CSV by link (?src=) in any browser, phones included, and can be embedded (/embed/csvfix/).
- Excel's own import (Data > From Text/CSV) asks for encoding, separator and each column's type by hand; online converters mostly upload the file and convert the encoding only, leaving decimal commas, dates and leading zeros to Excel.
- This tool detects all of it from the file, shows before and after, keeps every digit and proves the result cell by cell, without an upload or an account.

### What rebuilding it would take

- Detect the encoding, separator and header row of each file, and repair double-encoded text.
- Type every column by locale-aware number and date rules, keeping codes with leading zeros or 12+ digits as text.
- Write an .xlsx with number formats and read it back to prove every cell, plus a simulation of Excel's double-click to show what was wrong.
- Plus a test set of generated and real public CSVs from many countries, scored by program.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Files are read on the user's device and never uploaded.

_Status: CSV/TSV/TXT -> .xlsx, CSV for Excel, plain CSV, JSON, and .xlsx -> CSV work in the browser; agents send their own file to POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/csv_fix/jobs?wait=25._

## Privacy

- Files are read on the user's device and not uploaded; there is no share link for files.
- The page loads Papa Parse and fflate from unmakelabs.com itself; no third-party code host is contacted.

## Data

Opent in uw browser; uw bestand blijft op uw apparaat. Er wordt niets geüpload en er komt niets van in links.

## FAQ

- **Hoe behoud ik voorloopnullen als ik een CSV in Excel open?** Zet de CSV hier neer en download de .xlsx: kolommen met voorloopnullen worden als tekst bewaard, 0123 blijft 0123. Bedragkolommen blijven echte getallen.
- **Waarom toont Excel mijn nummers als 1,23E+15?** Getallen met meer dan 11 cijfers toont Excel wetenschappelijk, vanaf 16 cijfers laat het cijfers vallen. Hier blijven zulke codes tekst, elk cijfer intact.
- **Waarom wacht de download op een controle?** Omdat een converter die stil een cijfer laat vallen erger is dan geen. De pagina schrijft het Excel-bestand, leest het terug en vergelijkt elke cel met de CSV; wijkt er één af, dan is de download geblokkeerd en ziet u waar.
- **Kan ik een Excel-bestand omzetten naar een CSV voor een import?** Ja. Zet de .xlsx hier neer, kies onder Aanpassen het scheidingsteken, decimaalteken, datumformaat en de codering van uw systeem en download de CSV.
- **Is het echt gratis?** Ja: geen reclame, geen account, geen limieten.
- **Uploaden jullie mijn bestand?** Nee. Het bestand wordt in deze pagina op uw apparaat gelezen. Er is geen upload en geen deellink voor bestanden.
- **Kan een AI-agent het gebruiken?** Een agent kan een openbare CSV via een link openen (voeg ?src= en het adres van het bestand toe aan deze pagina).
- **Wie maakt dit?** Unmake Labs (Julien Salomon). Contact: hello@unmakelabs.com.

## Related pages

- [CSV openen in Excel, in kolommen](https://unmakelabs.com/nl-nl/csv-openen-in-excel/)
- [Kapotte tekens in CSV herstellen (UTF-8)](https://unmakelabs.com/nl-nl/csv-tekens-herstellen/)
