excel2csv

Package: WA2L/WinTools 1.2.10
Section: Library Commands (3)
Updated: 26 August 2026
Index Return to Main Contents

 

NAME

excel2csv - export Excel worksheets to csv files (UTF-8, retains newlines)

 

SYNOPSIS

WA2LWinTools/lib/[shell/]excel2csv [ -h | -V ]

excel2csv file.xlsx

excel2csv [ -t separator ] [ -s sheets ] [ -o outputdir ] file.xlsx

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

The excel2csv command exports worksheets of an Excel™ workbook to CSV files.

The CSV file is saved as UTF-8 and newlines in multi line fields are retained.

The exported worksheets CSV files are named worksheetname.csv and are saved to the current working directory (if the '-o outputdir' option is not used), whereas already existing files are overwritten.

 

OPTIONS

-h
usage message.

-V
print program version.

-t separator
field separator of CSV output data.

The default output separator is a comma (,).

-s sheets
case-sensitive comma- or semicolon-separated (example: servers,routers,pricelist) list of worksheet names to export to CSV files.

Default is to export all worksheets whose names contain a dot (.), for example: myschema.mytable.

To export all worksheets, specify: -s ALL

If the worksheet with the name ALL shall be exported, specify: -s ALL, or -s ALL;

-o outputdir
output directory to write the exported CSV files to.

file.xlsx
Excel™ workbook to export the worksheets from.

 

EXIT STATUS

0
no error.

1
error.

4
usage displayed.

5
version message displayed.

 

FILES

-

 

EXAMPLES

-

 

SEE ALSO

wintoolsintro(1), csvgrep(3), csvq(3), csvsort(3), csv2csv(3), csv2sql(3), csv2worksheet(3), print_list(3), print_samples(3), select_columns(3)

 

NOTES

-

 

BUGS

The excel2csv command needs a Microsoft™ Excel installation on the system.

excel2csv cannot be started thru SSH.

 

VERSION

1.0.05++

 

AUTHOR

excel2csv was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2026 Christian Walther

This is free software; see https://www.gnu.org/licenses/gpl-2.0.html for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
VERSION
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 14:34:32 GMT, August 30, 2026