# Text Studio — Character Counter & Text Cleaner

Paste text to see characters, words, lines and bytes instantly, then clean it up in one click — change case, remove duplicate or blank lines, sort naturally, convert line breaks. Every action reports what changed and can be undone.

- URL: https://tools.itlibra.com/en/text-studio
- On-device・No upload
- Last updated: 2026-10-23

## How to use

1. Paste or type text, or click “Open file” to load a .txt or .csv file (UTF-8 and Shift\_JIS are detected automatically).
2. Read the live counts at the top: characters, characters without spaces, lines, and UTF-8 / Shift\_JIS bytes. “Show all counts” adds words, paragraphs, code points and the line-break types.
3. Pick an action in “Transform & clean up” — change case, remove duplicates, sort, convert line breaks and more. To affect only part of the text, select it first.
4. After each action the tool tells you how many characters or lines changed. Use “Undo” if it is not what you wanted.
5. Copy the result, or download it as UTF-8, UTF-8 with BOM (for Excel) or Shift\_JIS.

## Use cases

- Check an essay, ad copy or form field against a character limit (with or without spaces)
- Remove duplicate lines from a pasted list and sort it naturally (1, 2, 10)
- Fix text copied from PDFs or spreadsheets: stray spaces, blank lines, mixed CRLF/LF
- Make sure text fits a byte limit before saving it to a database or legacy system
- Convert full-width ＡＢＣ or half-width ｶﾀｶﾅ when working with Japanese data

## What it does

### Characters as people see them

Emoji sequences (👨‍👩‍👧), flags and combined characters count as one, using grapheme clusters via Intl.Segmenter. Code points and JavaScript length are shown alongside, so you can match whatever your target system counts.

### UTF-8 and Shift\_JIS bytes

Byte counts for both encodings, with Shift\_JIS (Windows-31J) computed from the browser’s own conversion table. Characters Shift\_JIS cannot store, such as emoji, are listed in a warning.

### Natural sorting and deduplication

Sort A→Z, Z→A, by length, reverse or shuffle. Natural order treats numbers as numbers, so file2 comes before file10. Dedupe keeps the first occurrence and can ignore case and surrounding spaces.

### Case and width conversion

UPPERCASE, lowercase, Title Case and Sentence case for any script with letter case, plus separate full-width/half-width conversion for alphanumerics, symbols and Japanese katakana.

### Reports every change, with undo

Each action states how many characters or lines changed — or that nothing needed changing. Step back and forth through up to 50 actions, and apply actions to a selection only.

### Line-break and whitespace repair

Detects mixed CRLF / LF / CR line breaks and normalizes them, trims line ends, collapses repeated spaces and tabs, and adds or removes line numbers, prefixes and suffixes.


## Supported formats

### Open

- .txt
- .csv / .tsv
- .md
- .log
- .srt / .vtt
- UTF-8 / UTF-8 BOM / UTF-16 BOM / Shift\_JIS (auto-detected)

### Save

- UTF-8
- UTF-8 with BOM
- Shift\_JIS (unmappable characters become “?”)


## Capability matrix

| Feature | Support | Notes |
| --- | --- | --- |
| Characters (graphemes), without spaces / line breaks | Supported | — |
| UTF-8 / Shift\_JIS byte counts | Supported | Shift\_JIS = Windows-31J incl. NEC/IBM extensions |
| Word count | Partial | Space-separated languages only; Chinese/Japanese text is not split into words |
| Japanese manuscript-paper estimate | Partial | Simple row count; kinsoku and indentation rules are not applied |
| Upper / lower / title / sentence case | Supported | — |
| Sort, dedupe, trim, remove blank lines | Supported | — |
| Line-break conversion (CRLF / LF) | Supported | — |
| Comparing two texts (diff) | Not supported | Covered by a separate diff tool |
| Grammar or spell checking | Not supported | — |
| Offline use | Supported | Works without a connection once loaded |

## Limits & notes

- Up to 5 million characters of text; files up to 20 MB.
- Undo keeps the state before each action, up to 50 steps (use your browser’s Ctrl+Z for typing).
- Shift\_JIS bytes follow Windows-31J; JIS X 0213 (Shift\_JIS-2004) additions count as unmappable.
- Case conversion uses Unicode default rules; locale-specific rules such as Turkish dotted İ are not applied.
- Reading time is an estimate based on average reading speeds.
- Works on smartphones, but long manuscripts and large lists are easier to edit on a PC.

## Privacy & safety

Your text and files are processed only inside your browser. Nothing is sent to or stored on any server, so you can safely count and clean up confidential drafts or text containing personal data. Closing the page discards everything.

## FAQ

### Does the character count include spaces and line breaks?

Yes. “Characters” includes spaces and line breaks (a Windows CRLF counts as one). “Without spaces” excludes all whitespace, and “Show all counts” also lists characters without line breaks only.

### How are emoji counted?

As they look: 👍 or 👨‍👩‍👧 is one character. Some systems count differently (for example in UTF-16 code units, where one emoji can be 2–8), so code points and UTF-16 units are shown too.

### What is “natural” sorting?

It compares numbers inside text by value, so “file2” sorts before “file10”, and it follows language-aware alphabetical order. “Sort by code point” gives plain computer order if you need it.

### Why would I need the Shift\_JIS byte count?

Many Japanese legacy systems and forms limit fields in Shift\_JIS bytes (2 bytes per full-width character). The tool counts this exactly and lists any characters that cannot be stored.

### Can I undo a transformation?

Yes. Every action can be undone and redone (up to 50 steps), and the message after each action tells you exactly how much changed.

### Is my text sent anywhere?

No. Counting and every transformation run in your browser; your text is never sent to LIBRA Works or any third party.
