★LocalHost Run Under Construction
  • Home
  • Articles
  • Tools
http://localhost
HomeArticlesTools
All tools›Text Tools›Truncate Text

Truncate Text

Shorten text to a specified length.

Input text

​

Truncated text

​

Tool options

Truncation Side

Right-side Truncation

Remove characters from the end of the text.

Left-side Truncation

Remove characters from the start of the text.

Length and Lines

​

Number of characters to leave in the text.

Truncate each line separately.

Suffix and Affix

​

Characters to add at the end (or start) of the text. Note: They count towards the length.

Truncate text

Load your text in the input form on the left and you will automatically get truncated text on the right.


Truncate Text Examples

Click to try!

Basic Truncation on the Right

Truncate text from the right side based on max length.

​
​

Truncation Side

Right-side Truncation

Remove characters from the end of the text.

Left-side Truncation

Remove characters from the start of the text.

Length and Lines

​

Number of characters to leave in the text.

Truncate each line separately.

Suffix and Affix

​

Characters to add at the end (or start) of the text. Note: They count towards the length.

Truncation on the Left with Indicator

Truncate text from the left side and add an indicator.

​
​

Truncation Side

Right-side Truncation

Remove characters from the end of the text.

Left-side Truncation

Remove characters from the start of the text.

Length and Lines

​

Number of characters to leave in the text.

Truncate each line separately.

Suffix and Affix

​

Characters to add at the end (or start) of the text. Note: They count towards the length.

Multi-line Truncation with Indicator

Truncate text line by line, adding an indicator to each line.

​
​

Truncation Side

Right-side Truncation

Remove characters from the end of the text.

Left-side Truncation

Remove characters from the start of the text.

Length and Lines

​

Number of characters to leave in the text.

Truncate each line separately.

Suffix and Affix

​

Characters to add at the end (or start) of the text. Note: They count towards the length.


All Text Tools


  • Split — Split text into multiple parts using a separator
  • Join Text — Join text elements with a specified separator
  • Remove duplicate lines — Quickly delete all repeated lines from text
  • String To morse — Quickly encode text to morse
  • Text Replacer — Quickly replace text in your content
  • Repeat Text — Repeat text multiple times
  • Reverse — Reverse any text character by character
  • Randomize case — Randomize the case of letters in text
  • Convert to Uppercase — Convert text to uppercase
  • Extract substring — Extract a portion of text between specified positions
  • Create palindrome — Create text that reads the same forward and backward
  • Palindrome — Check if text reads the same forward and backward
  • Text Quoter — Add quotes around text with various styles
  • Rotate Text — Shift characters in text by position.
  • ROT13 Encoder/Decoder — Encode or decode text using ROT13 cipher.
  • Base64 Encoder/Decoder — Encode or decode data using Base64.
  • Text Statistics — Get statistics about your text
  • Text Censor — Quickly mask bad words or replace them with alternative words.
  • Password Generator — Generate secure random passwords with custom options
  • String URL encoder — Quickly URL-escape a string.
  • String URL decoder — Quickly URL-unescape a string.
  • Unicode Encoder / Decoder — Encode or decode text using Unicode escape sequences.
  • Hidden Character Detector — Find hidden Unicode characters in text
  • Compare Texts — Compare two texts and spot differences instantly
  • Slug Generator — Generate URL-friendly slugs from text.

LocalHost Run · Contact · Privacy Policy · Terms of Use

© 2026 LocalHost Run · localhost guides, articles, and developer tools · localhostrun.com
Visitors: 1025Best viewed in Netscape Navigator · 800×600© LocalHost Run