Publish Helper logo

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

自動在中文、日文、韓文(CJK)字元與英文字母或數字之間加入空格。貼上您的文字或 HTML,即刻取得完美排版的內容 — 免費、無需註冊。

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常見問題

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

+

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

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

+

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

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

+

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

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

+

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

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

+

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

可以用於日文或韓文嗎?

+

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

更新日誌

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