Skip to main content
SiteIndex
الأدوات المساعدةجاهزة للاستخدام

حوّل نهايات الأسطر LF وCRLF وCR

حوّل النص بين نهايات أسطر Unix وWindows وMac مباشرةً في المتصفح.

مساحة عمل تفاعلية

لا حاجة إلى حساب
محوّل نهايات الأسطر

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.

ما هي محوّل نهايات الأسطر؟

حوّل النص بين نهايات أسطر Unix وWindows وMac مباشرةً في المتصفح.

طريقة العمل

حوّل النص بين نهايات أسطر Unix وWindows وMac مباشرةً في المتصفح.

استخدامات شائعة

حوّل النص بين نهايات أسطر Unix وWindows وMac مباشرةً في المتصفح.

القيود

قد تعتمد النتائج على المتصفح والشبكة والمدخلات والخدمات الخارجية. هذه الأداة للمعلومات ولا تغني عن التشخيص المتخصص أو المشورة المهنية.

الأسئلة الشائعة
ما هي محوّل نهايات الأسطر؟
حوّل النص بين نهايات أسطر Unix وWindows وMac مباشرةً في المتصفح.

أدوات ذات صلة