Skip to content
Utility pack

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.

Guide: How to use & features

  • Type into the main text area to see live counts for characters, lines, and more.
  • Use Escape/Unescape, entity conversion, or quick minify buttons for HTML and code snippets.
  • In the password section, set the length and character types, click Generate, and copy the result.
  • All inputs and outputs stay on your device; nothing is uploaded.

FAQ: Frequently asked questions

  • What transformations are included?

    Common tweaks like changing letter case, trimming, normalizing spaces/newlines, and converting to snake case or other styles.
  • Are results applied instantly?

    Each action reprocesses the input and updates the output immediately. To revert, paste the original text again.
  • Is it okay for large text?

    It works best up to tens of thousands of characters in the browser. Split extremely large texts before processing.

Use cases: Common use cases

  • Tidying snippets

    Handle casing changes, trimming, and duplicate-line removal before dropping text into docs.

  • Quick data cleaning

    Strip extra spaces or blank lines from logs or pasted text as lightweight preprocessing.

  • Lightweight edits for review

    Make small adjustments in the browser and share without touching the original files.

Notes: Notes & limitations

  • Work stays in your browser

    Inputs and outputs remain local. Closing the tab or clearing cache will remove any temporary state.

  • Validate critical data

    Results are helper outputs—double-check them before sending to production systems or sharing externally.

  • Large payloads depend on your device

    Very large text or files can feel slow in some browsers. Use a desktop environment for heavy workloads.

Character Counter

Real-time
Chars: 0
Lines: 0
Words: 0
Bytes (UTF-8): 0

HTML 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

Recent Articles

Use Case
2026-08-07

curl Options Cheat Sheet: What -X, -H and -d Actually Do

A reference for the curl options you meet in real API work: why -d already implies POST, how -d differs from --data-raw, the @ prefix that silently reads a file, single vs double quotes, and why -k and -L deserve more caution than they usually get.

Introduction
2026-08-06

Converting Between JSON Schema and Zod: How required Maps to .optional()

Inside a two-way converter that turns JSON Schema into a Zod schema and Zod code back into JSON Schema. Covers the inverted defaults between required and .optional(), the constraint mapping table, and how the Zod side is parsed without executing any code.

Use Case
2026-08-06

SQL Clause Order Reference: Why WHERE Can't See Your SELECT Alias

The order you write SQL clauses is not the order the database runs them. A reference for the logical execution order (FROM → WHERE → GROUP BY → HAVING → SELECT → ORDER BY → LIMIT), why aliases fail in WHERE, when to use WHERE vs HAVING, and the MySQL/PostgreSQL differences that bite.

Use Case
2026-08-06

Unified Diff Format Reference: Reading @@ Hunks in git diff Output

How to read the unified diff format git produces: what the four numbers in @@ -12,7 +12,9 @@ mean, why a one-character edit shows as a whole-line replacement, the whitespace and line-ending traps, \ No newline at end of file, combined @@@ diffs on merges, and rename detection via similarity index.

Use Case
2026-08-06

UTC to JST Reference: The 9-Hour Offset, Cheat Sheet & Timezone Pitfalls

Convert between UTC and JST (Japan Standard Time) with a cheat sheet. Covers what Z and +09:00 mean in ISO 8601, when JavaScript date parsing silently shifts by 9 hours, MySQL/PostgreSQL timezone behavior, and why GitHub Actions cron always runs in UTC.

Use Case
2026-08-04

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.

Ad

Ad