文本自动排版
清理空行空格、中英文间加空格、统一标点。
关于「文本自动排版」
它属于「文本处理」分类:中文排版、编码转换、统计与内容检查。
- <b>中英文间加空格</b>:在汉字与字母、数字之间补一个空格,显著提升中英混排的可读性。
- <b>标点转全角</b>:只在标点紧邻中文时才转换,代码、网址、纯英文句子中的标点会保持半角。
- 时间与比例中的冒号(如 <code>9:30</code>)会保留半角,不会被误转。
- <b>合并多余空格</b>会清理重复空格、行尾空白,并去掉中文标点两侧多余的间隔。
- <b>段首缩进</b>使用两个全角空格,符合中文正文的排版习惯。
完全免费、无需注册;所有处理都在浏览器本地完成,文件不会上传到任何服务器。
相关关键词:文本自动排版、文本处理、排版、格式化、盘古、在线工具、免费
如何使用「文本自动排版」
- 打开工具:打开「文本自动排版」页面,无需注册、无需安装任何软件。
- 准备输入:准备好要处理的内容或文件:文本可直接粘贴,文件可拖入页面(本工具属于「文本处理」)。
- 填入内容:把内容粘贴进输入框,或把文件拖入页面;也可以点击「示例」先填入样例数据试一下。
- 设置选项并处理:按需调整页面上的选项,然后点击处理 / 转换 / 生成按钮。
- 获取结果:处理完全在浏览器本地完成,结果可直接复制或下载,文件不会上传到任何服务器。
常见问题
- 为什么要在中英文之间加空格?
- 汉字是方块字,字母是比例字形,直接相邻会显得拥挤且不易断词。加一个空格后视觉上更清晰,这也是主流中文技术文档普遍采用的规范。
- 会破坏代码或网址吗?
- 不会。全角转换要求标点紧邻汉字才触发,像 <code>admin@example.com</code> 或 <code>a=1,b=2</code> 这类内容周围没有汉字,因此保持原样。
- 为什么有的冒号没转成全角?
- 冒号后面跟数字时通常表示时间或比例,例如 9:30、16:9,这种情况保留半角更符合习惯。只有后面不是数字时才会转成全角。
- 排版后能撤销吗?
- 左侧输入框的内容不会被修改,随时可以对照。也可以调整选项后重新排版,直到满意为止。
Text Formatter (English)
Clean blank lines, space CJK/English, unify punctuation.
Belongs to “Text Tools”: Chinese typography, encoding conversion, statistics and content checks.
- <b>Space between CN/EN</b>: adds a space between Chinese characters and letters/digits, greatly improving mixed-language readability.
- <b>Full-width punctuation</b>: converts only when punctuation is next to Chinese; code, URLs and English sentences keep half-width punctuation.
- Colons in time or ratios (e.g. <code>9:30</code>) stay half-width and are never mis-converted.
- <b>Merge extra spaces</b> cleans up repeated spaces, trailing whitespace, and gaps around Chinese punctuation.
- <b>Indent paragraphs</b> uses two full-width spaces, following standard Chinese typesetting.
Free, no sign-up; everything runs locally in your browser and files are never uploaded.
Keywords: Text Formatter, Text Tools, format, typography, online tool, free
How to use it
- Open the tool:Open the “Text Formatter” page — no sign-up and nothing to install.
- Prepare the input:Prepare the content or file to process: paste text or drop a file onto the page (this tool belongs to “Text Tools”).
- Provide the input:Paste your content into the input box or drop a file onto the page; you can also click “Sample” to try example data first.
- Adjust options and run:Adjust the options if needed, then click the process / convert / generate button.
- Get the result:Everything runs locally in your browser; copy or download the result — your files are never uploaded.
FAQ
- Why add space between CN/EN?
- Chinese glyphs are square while Latin letters are proportional; placing them directly together looks cramped and hurts word breaking. A space improves clarity and is the norm in most Chinese technical docs.
- Will it break code or URLs?
- No. Full-width conversion only triggers when punctuation is adjacent to Chinese; content like <code>admin@example.com</code> or <code>a=1,b=2</code> has no Chinese nearby, so it stays intact.
- Why do some colons stay half-width?
- A colon followed by a digit usually means time or ratio (e.g. 9:30, 16:9), so keeping it half-width is more natural. Only colons not followed by a digit become full-width.
- Can I undo formatting?
- The left input box is never modified, so you can compare anytime. Adjust options and reformat until satisfied.
More tools in Text Tools
- Simplified ⇄ Traditional — Convert between Simplified and Traditional Chinese variants.
- Chinese to Pinyin — Convert Chinese to pinyin with tones, initials and polyphones.
- Letter Case Converter — Upper/lower/title/camel/snake case conversion.
- Circled Numbers & Letters — Convert digits and letters into circled Unicode chars.
- Mars Text Converter — Convert between plain text and "Mars" (stylized) text.
- Word & Char Counter — Count characters, Chinese chars, words, lines and reading time.
- Dedupe & Sort Lines — Dedupe, sort, reverse and shuffle lines.
- Text Diff — Compare two texts line by line with highlights.
- RMB Amount in Words — Convert numeric amounts into Chinese capital letters.
- Banned Word Checker — Built-in e-commerce/content sensitive-word list, customizable.
- ID Card Info Extractor — Extract birthday, gender, region from an ID number and validate.
- Smart To-Do List — Local to-do list with priority and filtering.