使用方法: 行行尾轉換器
行行尾轉換器 是一款免費線上文字工具工具,可在瀏覽器中即時convert between LF, CRLF, CR, NEL and LS, and report the mix currently in the file。貼上資料、調整選項即可即時獲得結果——無需安裝、無需註冊,任何資料都不會上傳到伺服器。
說明
Convert between LF, CRLF, CR, NEL and LS, and report the mix currently in the file.
- 文字工具
- 由於全部運算都在客戶端完成,使用 API 金鑰、權杖或私有記錄等敏感資料時,行行尾轉換器 同樣安全。
使用方法
使用 行行尾轉換器 只需三步:
- 將資料貼上到輸入框(或載入範例)。
- 依目標格式或使用情境調整選項。
- 複製、下載或檢視輸出——輸入時結果即時更新。
執行
範例
A Windows CRLF file; convert to LF for Unix tooling and Git.
輸入
first line second line third line
輸出
first line second line third line Line endings found in the input: CRLF 2 Total lines: 3 Converted to: LF
此输出由工具真实运行产生,并非人工编写。
使用場景
行行尾轉換器 常見的使用情境:
- Convert between LF, CRLF, CR, NEL and LS, and report the mix currently in the file.
參數說明
| key | 選項 | type | allowed | default | 行行尾轉換器 |
|---|---|---|---|---|---|
to | Convert to | select | lf (LF (\n) — Unix, Linux, macOS, Git), crlf (CRLF (\r\n) — Windows, HTTP, SMTP), cr (CR (\r) — classic Mac OS), nel (NEL (\u0085)), ls (LS (\u2028) line separator) | — | lf |
report | Also report the current mix | checkbox | — | true | true |
輸入: text · 輸出: text · live: ✓
常見問題
什麼是 Line Ending Converter?
Line Ending Converter 用於convert between LF, CRLF, CR, NEL and LS, and report the mix currently in the file。它完全在瀏覽器內執行,資料保持私密。
Line Ending Converter 可以免費使用嗎?
可以。Line Ending Converter 免費、無次數限制,無需註冊或安裝。
我的資料會被上傳嗎?
不會。所有處理都在本機瀏覽器完成,不會傳送到任何伺服器。
注意事項
- 全部计算在浏览器端完成,因此超大输入受限于标签页内存,而非服务器上传限制。
相關工具
大小寫轉換器Switch text between uppercase, lowercase, title case, sentence case and more.camelCase 轉換器Convert any text or identifier into camelCase.snake_case 轉換器Convert text into snake_case identifiers.kebab-case 轉換器Convert text into kebab-case for URLs, CSS classes and CLIs.PascalCase 轉換器Convert text into PascalCase for class and type names.CONSTANT_CASE 轉換器Convert text into CONSTANT_CASE for macros and enum members.