Home › Text Tools › Text Truncator

Text Truncator

Cut text down to a fixed number of characters, words or sentences. It backs up to the last whole word, adds an ellipsis if you want one, and can shorten every line of a list at once, which is handy for meta descriptions, product titles, previews and SMS.

Last updated:

Presets:
Options
0characters now
0before
0removed

Advertisement
Advertisement

How to use the Text Truncator

  1. Paste your text or a list with one item per line. An example is loaded so you can see how it works.
  2. Choose the unit and limit: characters, words or sentences, and the maximum number to keep. Presets fill in common limits.
  3. Pick whole text or each line. Each line truncates every line on its own, ideal for titles, CSV columns and product names.
  4. Set the ending: ellipsis style, whether it counts toward the limit, and whether words may be cut.
  5. Copy or download the shortened text. The report shows which lines were cut and by how much.

How the truncation works

For a character limit N with an ending E (such as …), the tool keeps at most N − length(E) characters of your text when the ending counts toward the limit, or N characters when it does not. With Don't cut words on, the cut moves back to the last space before that point, trailing spaces and dangling separators (comma, semicolon, colon, dash) are removed, and then the ending is added. The final string is therefore never longer than N characters, but it is often a little shorter, because the remaining part of the last word is dropped.

Example with a 40 character limit and …: Our handmade oak cutting boards are finished with food-safe oil becomes Our handmade oak cutting boards are… (36 characters), not Our handmade oak cutting boards are fin….

Word limits keep the first N words (a word is any run of characters between spaces, so "food-safe" is one word) and sentence limits keep the first N complete sentences. Middle truncation splits the allowance in half, keeping the first half from the start and the second half from the end.

Common length limits

Platforms change their limits and some truncate by pixel width rather than characters, so treat these as practical guidelines and check the platform's current documentation for hard limits.

Where the text goesTypical limitNotes
Search result title (title tag)about 50–60 charactersSearch engines cut by display width (around 600 px), so wide letters fit fewer.
Meta descriptionabout 150–160 charactersLonger descriptions are usually shortened with an ellipsis in results.
Single SMS (GSM-7 characters)160 charactersEmoji or some accented letters switch to UCS-2 encoding, which allows 70.
Post on X (standard account)280 charactersLinks count as 23; emoji and CJK characters count as 2.
Responsive search ad headline30 charactersDescriptions allow 90 characters.
Push notification previewroughly 40–120 charactersVaries with device, OS and screen width.

Tips for better shortened text

  • Put the most important words first. Truncation always removes the end, so lead with the product name, the keyword or the action.
  • Use the single … character when space is tight; it saves two characters compared with three periods.
  • For file names, paths and IDs, use Middle so both the folder and the file name stay visible.
  • Shortening a spreadsheet column? Copy the column, choose Each line separately, and paste the result back. Empty cells stay as empty lines, so rows stay aligned.
  • To check the result against a specific platform, paste it into the character counter or the SMS character counter.

Frequently asked questions

How do I shorten text without cutting a word in half?

Keep Don't cut words switched on. The tool takes the first N characters, and if that point falls inside a word it moves back to the previous space, then adds the ellipsis. If the text has no space before the limit (for example one very long URL), it cuts at the exact character limit so you still get a result.

Does the ellipsis count toward the character limit?

Only when Ellipsis counts toward the limit is ticked, which is the default. Then a 160 character limit with "…" keeps at most 159 characters of text plus the ellipsis, so the final string is never longer than 160. Untick it if your limit applies to the text alone.

What is the difference between … and ...?

The single ellipsis character (…, Unicode U+2026) counts as one character, while three periods count as three. Use … when every character matters, such as in title tags, SMS or ad text, and ... when the destination only accepts plain ASCII.

How are characters counted for emoji and accents?

The tool counts user-perceived characters (grapheme clusters) when your browser supports it, so an emoji like 👍🏽 or a letter with a combining accent counts as one character and is never split. Some platforms count differently; X, for example, weighs emoji and CJK characters as two.

How does sentence truncation decide where a sentence ends?

It uses your browser's built-in sentence segmenter, which understands periods, question marks, exclamation marks and closing quotes, and handles many abbreviations. In older browsers a simpler rule is used: a sentence ends at . ! ? or … followed by a space or the end of the text.

Can I truncate a whole list at once?

Yes. Choose Each line separately and every line is shortened on its own with the same rules. Empty lines are kept so the line count stays the same, which makes it safe to paste the result back into a spreadsheet column.

What does middle truncation do?

It keeps the beginning and the end and puts the ellipsis in the middle, for example a long file path becomes "C:/Projects/…/final-report.pdf". This is useful when the end of the text, such as a file name or an ID, is as important as the start.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Character CounterCount characters with and without spaces, words, lines and bytes, with live limit bars.Word CounterCount words and characters and clean up text.Text SplitterSplit long text into chunks by characters, words, lines or a delimiter, with numbering and copy.SMS Character CounterCount SMS characters and segments, detect GSM-7 vs Unicode and find the characters that cost extra.Online Word ProcessorFree browser word processor with headings, lists, tables and images. Autosaves; export DOCX or PDF.Remove Line BreaksStrip line breaks and extra spaces, keep paragraphs if you want.Sort Lines AlphabeticallySort a list A-Z, Z-A, numerically, naturally or by length, or shuffle it.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase and more.MLA Format GeneratorBuild an MLA 9 heading, title page layout and Works Cited entries.Lorem Ipsum GeneratorGenerate placeholder text as paragraphs, words or lists, with HTML.Text RepeaterRepeat any text or emoji up to 100,000 times with custom separators.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.Add Line NumbersNumber every line of your text with custom start, step, padding and separator, or remove numbers.Add Prefix and Suffix to LinesAdd text to the start and end of every line: quotes, commas, bullets or SQL lists.Comma SeparatorTurn a column of lines into a comma separated list and back, with any delimiter.Text to Handwriting ConverterTurn typed text into realistic handwriting on notebook paper and save it as PNG or PDF.Japanese Kana ConverterConvert romaji to hiragana or katakana, kana to romaji, and hiragana to katakana instantly.Pinyin Tone ConverterTurn pinyin tone numbers (ni3 hao3) into tone marks (nǐ hǎo), or tone marks back into numbers.Remove Duplicate LinesDelete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort.Remove Extra SpacesClean up double spaces, tabs, blank lines, non-breaking and invisible spaces in one click.Random Word GeneratorGenerate random English words by type, length, first letter and syllables, then copy them.List RandomizerShuffle a list into random order, pick random items or split it into fair teams.Email ExtractorPull every unique email address out of text or files, sort, filter by domain and export CSV.URL ExtractorExtract every link from text or HTML, remove duplicates, filter by domain or protocol.Strip HTML TagsRemove HTML tags and get clean plain text with line breaks and decoded entities.Online NotepadPrivate notepad that autosaves notes in your browser, with find, word count and .txt download.Remove PunctuationStrip all or only selected punctuation from text, with smart options for apostrophes and numbers.Remove AccentsStrip accents and diacritics from text (é→e, ñ→n, ß→ss, ø→o) instantly, live as you type.Sort NumbersPull numbers out of any text and sort them ascending or descending, with sum, average and median.Thread SplitterSplit long text into numbered X, Threads, Bluesky or Mastodon posts at sentence boundaries.Duplicate Word FinderFind repeated words in your text: doubled words like "the the" and overused words, highlighted.Alternating Caps GeneratorTurn text into aLtErNaTiNg caps, random caps or alternating words, then copy it.Random Paragraph GeneratorGenerate readable random English paragraphs by topic and length for writing and design.Random Sentence GeneratorGenerate random grammatical sentences: simple, compound, complex and questions.Markdown to Plain TextStrip Markdown syntax and keep clean plain text with lists, line breaks and link URLs.SRT to TextTurn SRT or VTT subtitles into a clean transcript with paragraphs, with or without timestamps.Transcript CleanerRemove timestamps, speaker labels and filler words like um and uh, and fix broken line breaks.Extract Numbers from TextPull every number out of text: decimals, negatives and percentages, with sum, average and CSV.Text to Table ConverterTurn tab, comma, pipe or space separated text into a table to copy as rich text, Markdown or plain text.Bulk Find and ReplaceApply a whole list of find → replace pairs to your text at once, with a per-pair change log.Contraction ConverterExpand contractions (don't → do not) for formal writing or contract phrases for a casual tone.Count Duplicate LinesCount how many times each line appears, sorted by frequency, with duplicates-only and CSV export.Double Space TextAdd blank lines between lines or paragraphs (1.5, double, triple spacing) or remove them again.Em Dash ReplacerReplace em and en dashes with commas, hyphens or periods and normalize ellipses and fancy punctuation.Extract Domains from URLsPull hostnames or root domains out of URL lists, strip www, dedupe and count links per domain.List to Sentence ConverterTurn a list into a natural sentence with commas and “and” or “or”, with an Oxford comma toggle.Merge Lines Side by SideCombine two to four lists line by line with any separator, padding or filling uneven lengths.Remove Line NumbersStrip leading numbers like 1., 1), [1] or code line numbers from every line and keep the text.Remove Stop WordsStrip common stop words (the, and, of…) from text in 7 languages to reveal the keywords.Remove Text in BracketsDelete everything inside ( ), [ ], { }, < > or custom markers, with nested bracket support.Remove URLs from TextStrip links, www addresses and bare domains from text, plus emails, @mentions or hashtags.Trim Characters from LinesRemove the first or last N characters, or text before/after a marker, on every line.Extract Phone NumbersFind phone numbers in any text, normalize them to E.164, remove duplicates and export CSV.Paragraph to Bullet Points ConverterSplit paragraphs into bullet points by sentence or clause, with your choice of bullet style.Compare Two ListsFind items only in list A, only in list B, in both lists, or in either, with copy and sort.DOCX to Text ConverterExtract plain text from Word .docx files, in batch, with list markers, tables and .txt download.English to IPA ConverterConvert English text to IPA phonetic transcription in US or UK accent, with stress marks.Hidden Character DetectorFind and remove zero-width spaces, non-breaking spaces and other invisible Unicode characters.Letter to Number ConverterConvert letters to alphabet numbers (A=1 to Z=26) and back, with ASCII codes and letter sums.Markdown to Word ConverterConvert Markdown to a styled Word .docx file with headings, lists, tables, code and links.Plural GeneratorConvert English nouns from singular to plural and back, irregulars included, one word per line.Remove Empty LinesDelete blank and whitespace-only lines, or collapse gaps to one, with before/after line counts.Remove Text FormattingPaste rich text from Word, Google Docs or the web and get clean plain text instantly.Smart Quotes ConverterConvert curly quotes, dashes and ellipses to straight ASCII, or straight quotes to typographic ones.Text to HTML ConverterTurn plain text into clean HTML: paragraphs, line breaks, links, lists and escaped entities.Text to Word ConverterTurn text or a .txt file into a Word .docx with your font, margins and page size.WhatsApp Text FormatterFormat WhatsApp messages with bold, italic, strikethrough, monospace, lists and quotes, then copy.Word CombinerBlend two or more words into portmanteaus, compound and clipped names for brands and wordplay.
See all 96 Text Cleaning & Formatting →