📏 文本换行Text Wrap

按指定字符宽度把长行折成多行。支持「词级包裹」(不切断单词)、「按字符硬切断」、以及为每行添加统一前缀(适合代码注释、列表、终端输出)。Break long lines at a fixed width. Word-aware mode won't split words; character mode cuts hard; optional per-line prefix is handy for comments, lists and terminal output.

① 换行设置① Wrap Settings

② 输入与输出② Input & Output

使用说明How to use

怎么用How to use
  1. 输入长行文本Enter long lines
  2. 设置换行宽度与词/字符模式Set a width and word/char mode
  3. 查看折行结果Review the wrapped lines

示例:一段长文 → 每 40 字折行Example: A long line → wrapped at 40

全程在你的浏览器本地完成,文本不会上传服务器。Runs entirely in your browser; your text is never uploaded.

按显示宽度折行(词级 / 字符级),可选每行前缀;中文长段在词级模式下也会自动按字符切分,避免整段跳过。Wrap text by display width (word / char) with an optional line prefix; long CJK runs are auto-split at character boundaries even in word mode.