Dos2Unix / Unix2Dos - Text file format converters

Convert text files with DOS or Mac line endings to Unix line endings and vice versa.

This is an update of Benjamin Lin's implementations of dos2unix and unix2dos. Benjamin Lin's implementations of dos2unix and unix2dos are part of several Linux distributions such as RedHat, Fedora, Suse, Gentoo and others. This update includes all RedHat patches and fixes several other problems. Internationalization has been added and ports to DOS, Windows, Cygwin and OS/2 Warp have been made.

These implementations of dos2unix and unix2dos have been modelled after dos2unix/unix2dos under SunOS/Solaris. They have similar conversion modes, namely ascii, 7bit and iso. The first versions were made by John Birchfield in 1989, and in 1995 rewritten from scratch by Benjamin Lin. Mac to Unix conversion was added by Bernd Johannes Wuebben in 1998, Unix to Mac by Erwin in 2010.

Features Dos2Unix includes:
dos2unix - DOS/MAC to UNIX text file format converter
unix2dos - UNIX to DOS/MAC text file format converter



ChangeLog.txt. Detailed change log.


Home page :
SourceForge project page :
Freecode project page :

Latest development version from Subversion repository:

svn checkout svn:// dos2unix-code


Erwin Waterlander