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の改行コード間で変換します。

関連ツール