Publish Helper logo

CJK 中英文自動加空格工具 — 中英日韓混排排版

自動在 CJK 字元與英文字母或數字之間加入空格。使用 pangu.js 標準,免費線上工具,無需註冊。

I

自動加空格工具

0 字元

II

使用方式

1.貼上您的內容

貼上包含中英混排的文字或 HTML。支援中文、日文、韓文與英文字母、數字的混排處理。

2.即時處理

工具自動偵測中英文交界處並在每個轉換點插入一個空格 — 無需 AI,完全在瀏覽器中執行。

3.複製並使用

複製加好空格的結果,貼到您的部落格、CMS 或原始碼中。HTML 模式會保留所有標籤,只對文字內容加空格。

III

排版前後對比

Before

使用React和TypeScript開發Web應用程式

After

使用 React 和 TypeScript 開發 Web 應用程式

Before

今天是2024年3月20日,天氣很好

After

今天是 2024 年 3 月 20 日,天氣很好

Before

<p>在GitHub上建立repository並push程式碼</p>

After

<p>在 GitHub 上建立 repository 並 push 程式碼</p>
IV

為什麼中英文加空格很重要

當中文字元緊貼英文字母或數字而沒有空格時,文字的可讀性會大幅降低。pangu.js 標準 — 以中國創世神話「盤古開天闢地」命名 — 在每個中英文交界處加入一個空格來提升閱讀體驗。

  • 提升可讀性 — 空格在不同書寫系統之間創造視覺上的呼吸空間
  • 統一排版 — 符合 Apple、Microsoft 和 W3C 採用的專業出版標準
  • 改善 SEO — 格式良好的中英混排內容更容易被搜尋引擎分詞和索引
  • 無障礙 — 螢幕閱讀器能更可靠地處理有空格的混合文字
V

所有工具

或從主要的 HTML 清理工具開始

開啟 Publish Helper
V

常見問題

什麼是中英文自動加空格?

+

中英文自動加空格會自動在中文、日文或韓文字元與相鄰的英文字母或數字之間插入一個空格。這遵循 pangu.js 的排版標準,已被廣泛應用於中文出版和網頁開發領域。

會不會修改 HTML 標籤或屬性?

+

不會。在 HTML 模式下,工具只會對元素內的文字內容加空格。HTML 標籤、屬性、URL 和程式碼區塊都不會被修改,只有可見的文字節點會被處理。

這和 pangu.js 是同一個東西嗎?

+

是的,本工具底層使用 pangu.js — 最受歡迎的開源中英文加空格函式庫,在 GitHub 上擁有超過 4,000 個星星。它能處理所有中英文交界的情況,包括標點符號、數字和混合文字。

加空格會影響 SEO 或搜尋排名嗎?

+

適當的中英文空格可以提升內容可讀性,並可能幫助搜尋引擎更準確地分詞處理中英混排文字。Apple 中國、Microsoft 文件和 MDN 中文版等主要科技公司都遵循這個排版規範。

這個工具可以免費使用嗎?

+

是的,完全免費且無需註冊。工具完全在您的瀏覽器中執行 — 您的文字不會被傳送到任何伺服器。

可以用於日文或韓文嗎?

+

當然可以。本工具支援所有 CJK 文字 — 中文(簡體和繁體)、日文(平假名、片假名、漢字)和韓文(韓文字母)。任何 CJK 字元與英文文字相鄰時都會自動加空格。

更新日誌

v3.0.02026-05-03
  • 新功能HTML Diff Viewer — compare before and after HTML with a visual diff (green/red)
  • 新功能Content Stats Calculator — word count, reading time, heading, image, and link counts
  • 新功能HTML Accessibility Checker — detect missing alt text, empty headings, skipped levels, and more
  • 新功能OG Image Generator — create 1200×630 social share images from your blog post title
  • 新功能Markdown ↔ HTML Converter — bidirectional conversion between Markdown and HTML
  • 新功能Table of Contents Generator — auto-generate nested TOC from heading tags in HTML or Markdown
  • 新功能JSON-LD Structured Data Builder — generate Article, BlogPosting, and FAQPage schema markup
  • 新功能Auto-clean on paste — optional toggle that auto-triggers cleanup when content is pasted
  • 新功能Table cleanup options — strip cell widths and remove empty table cells
  • 新功能Auto-save draft — content is saved to localStorage and restored on accidental refresh
  • 新功能All new tools linked from the main page TOOLS & GUIDES section and related pages
v2.4.12026-04-27
  • 新功能Paragraph option added to heading dropdown — convert headings back to normal text
  • 修復H1–H6 heading prefixes now convert correctly even when pasted with leading line breaks
  • 修復Fixed page crash on load — cookie consent now renders reliably
  • 改進Dependency updates for better performance and stability
v2.4.02026-04-17
  • 新功能Clear button — quickly wipe all editor content and reset the HTML panel from the left panel header
  • 修復Empty <p></p> placeholder no longer appears in the HTML panel after clearing the editor
  • 新功能Image insert via URL — paste any image URL into the editor with a new toolbar popover
v2.3.22026-04-14
  • 修復Heading conversion rewritten with DOM parsing — now works with any wrapper tag, split headings (H1 + body in same <p>), and safely preserves <li> inside lists
  • 修復Empty heading tags left behind by Google Docs are now automatically removed
v2.3.12026-03-25
  • 修復Heading conversion now handles spaces before the colon (e.g. "H2 : Title")
  • 修復Right-to-left content (Arabic, Hebrew) no longer inverts embedded English text in the editor
  • 修復Spacer paragraphs (&nbsp;) are now preserved in the HTML output instead of being stripped
v2.3.02026-03-20
  • 新功能CJK auto-spacing — automatically insert spaces between Chinese/Japanese/Korean characters and English letters or numbers (powered by pangu.js)
  • 新功能Standalone CJK Auto-Spacing tool page with before/after examples, FAQ, and SEO-optimized bilingual content
  • 新功能Chinese UI text auto-spacing — zh-TW interface text now has proper CJK–Latin spacing
  • 修復Mobile toolbar no longer floats and follows scrolling — stays pinned at the bottom of the editor
  • 修復Mobile toolbar buttons now scroll horizontally instead of overflowing
  • 修復Find & Replace inputs no longer break out of the container on narrow screens
v2.2.12026-03-20
  • 修復Heading conversion now uses the text prefix (e.g. H3:) to set the heading level, even when the content is already inside a different heading tag
v2.2.02026-03-18
  • 新功能AI-Powered Title to SEO Slug — Convert blog titles in any language to SEO-friendly English slugs in under 10 seconds
  • 新功能Slug generator toggle on the main page — generate slugs right after editing, above the fold
  • 新功能Table support — pasted tables from Google Docs now render correctly
  • 新功能Remove <br> after headings cleanup option (on by default)
  • 新功能Partial text selection copy in the HTML code view
  • 新功能Sticky Clean HTML button at the bottom of the page
  • 改進Heading conversion now strips prefixes from existing heading tags and supports Chinese full-width colon (:)
  • 改進Shared footer across all pages
v2.1.22026-03-17
  • 修復Bug fixes and improvements
v2.1.12026-03-16
  • 修復Bug fixes and improvements
v2.1.02026-03-16
  • 新功能Formatted/Raw toggle for the HTML code view
  • 改進Copying from the code panel now always gives clean, unformatted HTML
v2.0.02026-03-16
  • 新功能Welcome to Publish Helper — free online tools for content editors
  • 改進Improved search engine visibility
v1.1.02026-03-16
  • 改進Clipboard copy — clean HTML output matches the code view
v1.0.02026-03-16
  • 新功能Rich text editor with Google Docs paste support
  • 新功能HTML cleanup: strip styles, classes, empty tags, and Google Docs artifacts
  • 新功能Heading conversion from text prefixes to proper HTML tags
  • 新功能Find & replace with regex support and saveable presets
  • 新功能Syntax-highlighted HTML preview with one-click copy