CSS Minify / Beautify

Input 0 chars
Output 0 chars

Press Ctrl + Enter to run the first action of the current tool

What is Text Formatter Toolbox?

Text Formatter Toolbox is a free, open-source, pure front-end online text toolkit covering CSS minify & beautify, HTML minify & format, Markdown ↔ HTML conversion, paragraph cleanup, CJK–Latin typography spacing, full/half-width punctuation conversion, plus URL, Base64 and JSON codecs. 5 categories, 30+ one-click actions — no sign-up, no limits, no uploads.

Every conversion runs locally in your browser with JavaScript — nothing is ever sent to a server, and no cookies or tracking are involved. It works offline (installable as a PWA). The whole toolbox is a single HTML file with zero dependencies and zero external requests — save it to disk and it works as a desktop app.

Features: 5 categories of text tools

1. CSS Minify / Beautify

Expand one-line stylesheets into readable form, or strip all whitespace for production.

  • CSS minify (comments, whitespace, trailing semicolons)
  • Format multi-line (one declaration per line)
  • Format single-line (one rule per line)
  • Restore original anytime

2. HTML ↔ Markdown

Switch between writing documents and writing web pages, keeping headings, lists and tables.

  • HTML → Markdown
  • Markdown → HTML
  • HTML minify / beautify
  • Code blocks, tables, task lists supported

3. Paragraph Cleanup

Fix messy text copied from Word, PDF or web pages.

  • Trim leading / trailing spaces
  • Merge or remove blank lines
  • Smart paragraph joining
  • One sentence per line, dedupe, sort lines

4. CJK–Latin Typography

Solve the most common Chinese-English mixed-text typesetting issues.

  • Auto space between CJK and Latin/digits
  • Add space after punctuation
  • Chinese ↔ English punctuation
  • Full-width ↔ half-width
  • Letter case: UPPER / lower / Title / Sentence / iNVERSE

5. General Conversion

Everyday encoding and escaping utilities for developers and writers.

  • JSON beautify / minify
  • HTML entity escape / unescape
  • URL encode / decode
  • Base64 encode / decode (UTF-8 safe)

How to use — three steps

  1. Paste textPaste your CSS / HTML / Markdown / plain text into the Input box, or click “Load sample” to try it.
  2. Pick an actionSwitch categories on the left and click a button; or press Ctrl + Enter to run the default action.
  3. Copy the resultThe Output box updates live. Click “Copy result”, or feed the result back as input to chain another action.

Tip: feed the result back into the input to chain actions, e.g. “Markdown → HTML” then “HTML minify”.

FAQ

Is this text formatter free?

Yes — completely free and open source under the MIT license. No usage limits, no sign-up, no watermark.

Is my text uploaded to a server?

No. This is a pure front-end tool: every conversion runs in your browser with JavaScript. The page makes no network requests, works offline, and can be installed as a local app.

Will CSS minification break my styles?

Strings, comments and URLs are protected before whitespace removal, so spaces inside content: "a b" are preserved. There is also a “Restore original” button to roll back anytime.

Which Markdown syntax is supported?

ATX and Setext headings, ordered/unordered/nested lists, task lists, fenced code blocks (with language), blockquotes, horizontal rules, tables with alignment, images, links, autolinks, bold, italic, strikethrough and inline code.

Why add spaces between Chinese and English?

Mixed CJK–Latin text reads better with a thin gap between Han characters and Latin letters or digits — a widely recommended Chinese typesetting convention. The tool protects URLs, emails, code blocks and HTML tags, so it never inserts spaces inside them.

Can I convert Chinese punctuation to English punctuation in bulk?

Yes. The CJK–Latin Typography category offers both directions, covering commas, periods, question/exclamation marks, colons, semicolons and brackets, while skipping decimal points and thousands separators.

Does Base64 support Chinese characters?

Yes. Text is UTF-8 encoded before Base64 and decoded back as UTF-8, so Chinese never turns into mojibake. Line breaks and spaces are ignored when decoding.

Does it work on mobile? Any shortcuts?

Yes, the layout is responsive — input and output stack vertically on phones. Desktop shortcut: Ctrl + Enter (macOS: ⌘ + Enter) runs the first action.

Can I use it offline?

Yes. The whole toolbox is a single index.html with no external dependencies — save it and double-click to run, or install it to your home screen for offline use.

Privacy

No backend API, no analytics scripts, no third-party CDN, no tracking cookies. The only thing stored is your dark/light theme preference in localStorage. Safe for config files, contracts and internal documents.