使用方法: 行行尾转换器
行行尾转换器 是一款免费在线文本工具工具,可在浏览器中即时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.