No description
Find a file
2026-03-05 10:58:21 +01:00
.beads Added IDE an beads issues 2026-03-05 10:57:23 +01:00
.idea Added IDE an beads issues 2026-03-05 10:57:23 +01:00
docs feat: initialer Commit des csv2excel CLI-Tools 2026-03-05 10:14:52 +01:00
internal/version feat: initialer Commit des csv2excel CLI-Tools 2026-03-05 10:14:52 +01:00
magefiles feat: initialer Commit des csv2excel CLI-Tools 2026-03-05 10:14:52 +01:00
.gitignore feat: initialer Commit des csv2excel CLI-Tools 2026-03-05 10:14:52 +01:00
AGENTS.md fix: parse -o flag correctly to resolve output filename 2026-03-05 10:56:18 +01:00
CHANGELOG.md docs: update CHANGELOG.md for v0.1.1 2026-03-05 10:58:21 +01:00
CLAUDE.md feat: initialer Commit des csv2excel CLI-Tools 2026-03-05 10:14:52 +01:00
go.mod feat: initialer Commit des csv2excel CLI-Tools 2026-03-05 10:14:52 +01:00
go.sum feat: initialer Commit des csv2excel CLI-Tools 2026-03-05 10:14:52 +01:00
main.go fix: parse -o flag correctly to resolve output filename 2026-03-05 10:56:18 +01:00
main_test.go fix: parse -o flag correctly to resolve output filename 2026-03-05 10:56:18 +01:00
README.md docs: README mit Installations- und Nutzungsanleitung hinzugefügt 2026-03-05 10:18:07 +01:00

csv2excel

A command-line tool that converts one or more CSV files into a single Excel (.xlsx) file. Each CSV file becomes a separate worksheet, named after the source file.

Features

  • Merges multiple CSV files into one Excel workbook
  • Auto-detects the delimiter (,, ;, \t)
  • Supports UTF-8 and Windows-1252 encoding
  • Tolerant with malformed CSV files (LazyQuotes)
  • Version info injected at build time via git tags

Installation

From source

Requires Go 1.21+.

git clone https://code.beautifulmachines.dev/jakoubek/csv2excel
cd csv2excel
go install .

Build with Mage

Requires Mage.

mage Build          # current platform (auto)
mage BuildWindows   # dist/csv2excel.exe
mage BuildLinux     # dist/csv2excel
mage Install        # install to $GOBIN
mage Clean          # remove dist/

Usage

csv2excel [flags] file1.csv file2.csv ...

Flags

Flag Default Description
-o output.xlsx Output file path
-sep auto Delimiter: auto, ,, ;, \t
-enc utf8 Encoding: utf8, windows1252

Examples

# Convert a single file
csv2excel data.csv

# Merge multiple files into one workbook
csv2excel -o report.xlsx sales.csv inventory.csv customers.csv

# Force semicolon delimiter, Windows-1252 encoding
csv2excel -sep ";" -enc windows1252 -o result.xlsx export.csv

Each CSV file becomes a worksheet named after the filename (without extension). Sheet names are truncated to 31 characters to comply with Excel's limit.

Dependencies

License

MIT