Command-line tool
dos2unix
brew/dos2unix
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Convert text between DOS, UNIX, and Mac formats linebreak-converter linebreakconverter line-break-converter convert-linebreaks convertlinebreaks convert-line-breaks dos-to-unix-linebreaks mac-to-unix-linebreaks unix-to-dos-linebreaks unix-to-mac-linebreaks
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id waterlan.dos2unix -e scoop install dos2unix
macOS
brew install dos2unix
Linux
brew install dos2unix
Change the line endings of a file
dos2unix path/to/file
Create a copy with Unix-style line endings
dos2unix -n path/to/file path/to/new_file
Display file information
dos2unix -i path/to/file
Related command-line tools
- pandoc
Swiss-army knife of markup format conversion markdown docs document 转换 converter doc 转换器 pandoc 格式转换 document-converter - nskeyedarchiver_converter
Convert NSKeyedArchiver encoded plists to human readable formats - tofrodos
Converts DOS <-> UNIX text files, alias tofromdos - enca
Charset analyzer and converter - subconverter
Utility to convert between various subscription format. - atg
Convert transcripts between different file formats - unrtf
RTF to other formats converter - edky
Convert Ed25519 public keys between various encoding formats.
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents