Text & Code Utilities
A comprehensive set of text and code utilities available on a single page.
You can count characters, words, lines, and UTF-8 bytes in real time by typing or pasting text.
The tool also includes HTML escaping and unescaping, as well as HTML and XML encoding and decoding, making it easy to safely handle markup and structured content.
For quick cleanup, a lightweight CSS and JavaScript minifier is provided
to remove comments and unnecessary whitespace for simple snippets.
In addition, a password generator allows you to create strong, customizable passwords
by selecting character sets such as uppercase, lowercase, numbers, and symbols, and adjusting the desired length.
All tools are designed for quick checks, drafts, and small code fragments.
All processing is performed locally in your browser.
No text, code, or generated data is sent to any server, ensuring privacy and safe everyday use.
Character Counter
Real-timeHTML Escape
HTML / XML Encode & Decode
CSS / JS Light Minify
Lightweight minification only. For production, use a dedicated build tool.
Password Generator
Text Utilities and Character Counter
This text utilities tool collects small but frequent text tasks in one place: counting characters and lines, cleaning whitespace, escaping HTML, and preparing text for documentation, forms, code snippets, or content workflows.
When it helps
- Check character limits: Review lengths for meta descriptions, social posts, ads, and form fields.
- Prepare safe snippets: Escape HTML before displaying code or text in documentation.
- Clean up text: Remove extra spaces, normalize line breaks, and inspect line counts.
Keep the original text
Some transformations are difficult to reverse once they have been applied multiple times. When editing important text or code snippets, keep the original nearby before running cleanup, escaping, or replacement operations.
Articles for this tool
How to Count Characters and Clean Text for Docs, Forms, and Code Snippets
Use character counts, line counts, whitespace cleanup, and HTML escaping to prepare text for documentation, metadata, forms, and development workflows.
Practical Regex Recipes: Copy-Paste Search and Replace Patterns
Ready-to-use regular expressions for emails, URLs, dates, whitespace cleanup, and more—each with what it matches—plus everyday text-processing tips.
Drastically Simplify Markdown Table Creation! Visual Editor Techniques
'Writing tables in Markdown is such a chore...' If you've ever felt that, this guide is for you. Learn how to increase document efficiency using a visual editor for intuitive table creation and editing.
Recent Articles
CREATE TABLE Reference: MySQL vs PostgreSQL vs SQLite Types & Constraints
A cross-database CREATE TABLE (DDL) reference with cheat sheets for data types, auto-increment keys (AUTO_INCREMENT / IDENTITY / rowid), foreign key ON DELETE behavior, and the CHECK constraint that MySQL silently ignores.
How CREATE TABLE Generation From a Visual Table Design Works | DDL Builder
A look inside DDL Builder, which turns a visually designed table into CREATE TABLE statements and an ER diagram. Covers the MySQL/PostgreSQL/SQLite type-mapping rules and the column-inference algorithm used for JSON samples.
GitHub Actions needs Design Patterns: Speed Up CI, Avoid the Anti-Patterns
A pattern reference for GitHub Actions job dependencies (needs). Covers diamond-shaped fan-out, concurrency cancellation, fail-fast tradeoffs, matrix-plus-needs gotchas, and reusable workflows, with copy-paste YAML examples.
SQL JOIN Types: Complete Reference to INNER, LEFT, RIGHT & FULL
A reference for SQL JOIN types (INNER/LEFT/RIGHT/FULL/CROSS/SELF) with a cheat sheet and row-count walkthroughs. Covers why one-to-many joins duplicate rows, the WHERE-vs-ON NULL trap, and how to write multi-table joins.
Case Converter: camelCase, snake_case & kebab-case — 9 Styles at Once
Convert identifiers between camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case and more — all nine styles side by side. Handles acronym runs like HTTPServer, digits, and bulk multi-line conversion.
LLM API Cost Calculator: Compare Claude, GPT & Gemini Pricing Side by Side
Paste a prompt, set the expected output tokens, and compare per-request API costs across Claude, GPT and Gemini models. Covers input/output pricing structure, auto-updated price tables, and estimate limits.