Truncate Text

Shorten any text to a set number of characters or words and append an ellipsis — without splitting a word in half. Runs entirely in your browser, no server, no sign-up.

Truncated text

What this tool does

Truncate (shorten) text to a maximum number of characters or words, right in your browser. When the text is longer than the limit it is cut and an ellipsis ( by default) is appended; text that already fits is returned unchanged. Nothing is sent to a server — it runs locally, works offline, and needs no sign-up.

Paste your text, set a Limit, choose whether to measure that limit in characters or words, and tune the options.

How it truncates

Options

OptionWhat it does
LimitThe maximum number of units to keep (default 100).
Measure limit inCount the limit in characters (default) or whole words.
Ellipsis / suffixThe marker appended when text is cut (default ). Type ... for three dots, or your own suffix such as (read more).
Ellipsis counts toward the limit (default on)When on, room is reserved for the marker so the whole result fits within the limit. Turn off to keep the limit characters plus the marker. Only applies to character truncation.
Allow breaking words mid-cut (default off)When off, the cut backs up to the last space so a word is never split. Turn on to cut exactly at the character limit. Only applies to character truncation.

Examples

InputLimitOutput
the quick brown fox12 charactersthe quick…
the quick brown fox12 characters, break words onthe quick b…
the quick brown fox jumps3 wordsthe quick brown…
hello20 charactershello (unchanged)

FAQ

Is it free and private?

Yes — your text never leaves your device, and it keeps working offline once the page has loaded.

Does it count by characters or display width?

It counts Unicode characters (scalar values), which is exact for plain prose. Wide CJK glyphs and combining marks may render wider than their character count.

Can I truncate with no ellipsis at all?

On this page, clearing the ellipsis field falls back to the default . To cut with no marker, use the CLI or chat tool and pass an empty ellipsis.

Is this good for meta descriptions or previews?

Yes — set the limit to your target length (for example 155–160 characters for a meta description) and the word-safe cut keeps the snippet readable.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool truncate-text "Paste the text you want to shorten…"

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/truncate-text/?text=Paste%20the%20text%20you%20want%20to%20shorten%E2%80%A6&length=100&unit=characters&ellipsis=%E2%80%A6&count_ellipsis=true&break_words=true

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.