Skip to main content
SiteIndex
UtilitasSiap digunakan

Konversi akhir baris LF, CRLF, dan CR

Konversi teks antara format akhir baris Unix, Windows, dan Mac tanpa meninggalkan browser.

Panduan

Area kerja interaktif

Tidak perlu akun
Konverter akhir baris

Detected: 2 CRLF, 0 LF, 0 CR

3 lines · 2 line endings · 2 will change to LF

Which line ending should you use?
StyleBytesUsed by
CRLF (\r\n)2Windows / DOS, most Windows editors, CSV opened in Excel
LF (\n)1Unix, Linux, macOS, Git repositories, shell scripts
CR (\r)1Classic Mac OS (pre-OS X); rarely used today

Git settings

On Windows, git config --global core.autocrlf true converts LF to CRLF on checkout and back on commit. On macOS/Linux use core.autocrlf input (convert CRLF to LF on commit only). A committed .gitattributes file overrides per-machine settings:

* text=auto eol=lf
*.sh text eol=lf
*.bat text eol=crlf

A shell script saved with CRLF endings fails on Linux with $'\r': command not found — convert scripts to LF before running them.

Apa itu Konverter akhir baris?

Konversi teks antara format akhir baris Unix, Windows, dan Mac tanpa meninggalkan browser.

Cara kerja

Konversi teks antara format akhir baris Unix, Windows, dan Mac tanpa meninggalkan browser.

Kegunaan umum

Konversi teks antara format akhir baris Unix, Windows, dan Mac tanpa meninggalkan browser.

Batasan

Hasil dapat bergantung pada browser, jaringan, input, dan layanan eksternal. Alat ini bersifat informatif dan bukan pengganti diagnosis khusus atau saran profesional.

Pertanyaan umum
Apa itu Konverter akhir baris?
Konversi teks antara format akhir baris Unix, Windows, dan Mac tanpa meninggalkan browser.

Alat terkait