# Führende Nullen und lange Zahlen aus CSV behalten

> Postleitzahlen, Artikelnummern und lange IDs behalten jede Ziffer; Beträge bleiben Zahlen.

Human page: https://unmakelabs.com/de-de/csv-fuehrende-nullen/. This is the version for AI agents.

## What it does

Führende Nullen in Excel behalten: Jede führende Null und jede Ziffer behalten Postleitzahlen, Artikelnummern und lange IDs behalten jede Ziffer; Beträge bleiben Zahlen.

## Wie Excel Ziffern verliert

Beim Doppelklick macht Excel aus allem, was wie eine Zahl aussieht, eine Zahl: Aus 01067 wird 1067, aus einer EAN 4,00638E+12, und eine 16-stellige Karten- oder Bestellnummer verliert ihre letzte Ziffer für immer, weil Excel nur 15 behält. Dieses Tool erkennt Nummern (führende Nullen, 12+ Ziffern gleicher Länge, +Telefonnummern) und speichert sie als Text.

## Was Sie bekommen

Eine Excel-Datei mit echten Zahlen zum Rechnen, echten Datumswerten zum Sortieren und Nummern, die jede Ziffer behalten: Postleitzahlen und Artikelnummern mit führender 0, EAN, IBAN und 16-stellige IDs genau wie geschrieben. Die Kopfzeile ist fixiert, Infozeilen über der Tabelle bleiben erhalten. Oder eine CSV, die Ihr Excel richtig liest, oder eine einfache UTF-8-CSV für einen Import.

## Facts

- **Repariert:** Kodierung (UTF-8, Windows-1252, UTF-16, Mac, kaputtes „Ã¼“), Trennzeichen, Dezimalkomma oder -punkt, Datum, führende Nullen, lange Zahlen
- **Speichert:** Excel .xlsx, CSV für Excel, einfache UTF-8-CSV, JSON; Excel zurück in CSV
- **Prüft:** Jede Zelle aus der Excel-Datei zurückgelesen, keine Ziffer verloren, Zeilen und Spalten gezählt
- **Datenschutz:** Auf Ihrem Gerät gelesen; nichts hochgeladen

## How a person does it

1. **CSV ablegen.** Oder auf CSV-Datei wählen tippen. Ein Bank-, Shop- oder Open-Data-Export von ein paar MB dauert etwa eine Sekunde.
2. **Vorher und nachher vergleichen.** Oben: was Excel beim Doppelklick zeigt. Darunter: die reparierte Tabelle, jede geänderte Zelle farbig. Bei Bedarf einen Spaltentyp unter Anpassen ändern.
3. **Excel-Datei laden.** Auf Laden tippen. Die Seite hat die Datei schon zurückgelesen und jede Zelle geprüft.

## 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/de-de/csv-fuehrende-nullen/?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

Die Erkennung läuft automatisch, mit Begründung unter Details. Haben Datumswerte nur Tage bis 12, ist die Reihenfolge (Tag oder Monat zuerst) aus dem Rest der Datei geschätzt; die Spalte ist markiert und mit einem Tipp umstellbar. Getestet mit 74 echten öffentlichen CSV-Exporten aus 18 Ländern und 200 erzeugten Dateien: jede Zelle aus der Excel-Datei zurückgelesen, keine Ziffer verloren.

## Not done by this tool

- Ändert Ihre Daten nicht: liest sie richtig, bereinigt oder entdoppelt nicht
- Öffnet keine Dateien über 50 MB im Browser
- Liest keine PDFs (dafür PDF-Tabellen nach Excel) und kein altes .xls
- Führt nicht mehrere CSV-Dateien zusammen

## 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

Öffnet sich im Browser; Ihre Datei bleibt auf Ihrem Gerät. Nichts wird hochgeladen, nichts davon landet in Links.

## FAQ

- **Wie behalte ich führende Nullen beim Öffnen einer CSV in Excel?** Legen Sie die CSV hier ab und laden Sie die .xlsx: Spalten mit führenden Nullen werden als Text gespeichert, 01067 bleibt 01067. Betragsspalten bleiben echte Zahlen.
- **Warum zeigt Excel meine Nummern als 1,23E+15?** Zahlen mit mehr als 11 Stellen zeigt Excel wissenschaftlich, ab 16 Stellen streicht es Ziffern. Hier bleiben solche Nummern Text, jede Ziffer intakt.
- **Warum wartet der Download auf eine Prüfung?** Weil ein Konverter, der still eine Ziffer verliert, schlimmer ist als keiner. Die Seite schreibt die Excel-Datei, liest sie zurück und vergleicht jede Zelle mit der CSV; weicht eine ab, ist der Download gesperrt und Sie sehen, wo.
- **Kann ich eine Excel-Datei in eine CSV für einen Import umwandeln?** Ja. Legen Sie die .xlsx hier ab, wählen Sie unter Anpassen Trennzeichen, Dezimalzeichen, Datumsformat und Kodierung Ihres Systems und laden Sie die CSV.
- **Ist das wirklich kostenlos?** Ja: keine Werbung, keine Anmeldung, keine Grenzen.
- **Laden Sie meine Datei hoch?** Nein. Die Datei wird in dieser Seite auf Ihrem Gerät gelesen. Es gibt keinen Upload und keinen Teilen-Link für Dateien.
- **Kann ein KI-Agent das nutzen?** Ein Agent kann eine öffentliche CSV per Link öffnen (?src= und die Adresse der Datei an diese Seite hängen).
- **Wer steckt dahinter?** Unmake Labs (Julien Salomon). Kontakt: hello@unmakelabs.com.

## Related pages

- [CSV in Excel öffnen, mit Spalten](https://unmakelabs.com/de-de/csv-in-excel-oeffnen/)
- [CSV-Umlaute reparieren (UTF-8)](https://unmakelabs.com/de-de/csv-umlaute-reparieren/)
