改行コード(CRLF・LF)をそろえる方法
この記事のポイント
- ファイルを選ぶ
- 「改行」を選ぶ
- 変換して保存する
Windowsは「CRLF」、MacやLinuxは「LF」が一般的です。文字コードを変換する は、文字コードの変換と同時に、改行もそろえられます。
手順
- ファイルを選ぶ
- 「改行」で、CRLFかLFを選ぶ
- 「変換して保存」を押す
「そのまま」を選ぶと、元の改行を変えません。
文字コードを変換する(文字化けを直す)を使う(無料)
あわせて使えるツール
- CSVとJSONを相互変換する:CSVとJSONを、すぐに相互変換します。
- CSVをExcelファイルにする:CSVを、Excelで開ける .xlsx ファイルにします。
- 文章の改行を消す・整える:PDFなどからコピーした文章の改行を整えます。
同じツールの、ほかの解説
How to Match Line Endings (CRLF and LF)
Key points
- Choose the file
- Choose "Line breaks"
- Convert and save
Windows usually uses CRLF, while Mac and Linux use LF. Convert Text Encoding can match line endings at the same time as converting the encoding.
Steps
- Choose the file
- Under "Line breaks" choose CRLF or LF
- Tap "Convert and save"
Choose "Keep" to leave the original line endings.
Use "Convert Text Encoding (Fix Garbled Text)" (free)
Tools that go well with this
- Convert CSV and JSON: Convert between CSV and JSON instantly.
- Convert CSV to Excel (.xlsx): Convert a CSV to an Excel (.xlsx) file.
- Remove and Tidy Line Breaks in Text: Tidy line breaks in text copied from PDFs and elsewhere.
More guides for this tool
- How to Convert a Text File's Encoding (Free, Works on a Phone)
- Why a CSV Looks Garbled and How to Fix It
- Opening a UTF-8 CSV in Excel (Convert to UTF-8 with BOM)
- Converting for Systems That Only Accept Shift_JIS
- How Encoding Auto-Detect Works and What to Do When It Fails
- Converting Encodings Without Uploading Your File