WeSeong Log in

Character & Byte Counter with Text Cleanup

Check character and UTF-8 byte counts instantly, then clean up spaces and line breaks with explicit options.

COUNT

Enter text

Characters · with whitespace 0
Characters · no whitespace 0
UTF-8 bytes 0
Lines 0
CLEAN UP

Clean up spaces & line breaks

Only selected operations are applied to the result.
Whitespace

Whitespace options are applied line by line before blank-line and line-break handling.

Format JSON, XML, HTML, SQL, CSS & JavaScript

This formats the original input separately from text cleanup, entirely in the browser. JavaScript, CSS, and SQL are parsed only; they are never executed or sent to the server. Select the matching database dialect for the most accurate SQL output. XML and HTML are parsed and re-serialized by the browser, so quotes, empty tags, and omitted tags may be normalized.

RESULT

Cleaned result

BASIS

Counting & cleanup rules

  • Characters are counted as visible graphemes where possible, including combined emoji and composed characters. The with-whitespace count includes line breaks.
  • Bytes are counted using UTF-8, the encoding commonly used on the web and in JSON.
  • Windows (CRLF), classic Mac (CR), and Unix or web (LF) line breaks are normalized to LF during cleanup.