Text & String Utilities
Transform, inspect, format, count, sort, filter, and manipulate plain text, lists, lines, regex patterns, and Morse code.
Available Tools (78)
All client-side utilitiesSpaces to Tabs Converter Online
Replace fixed groups of spaces with tab characters. Choose the number of spaces per tab and convert indentation or alignment in pasted plain text.
Tabs to Spaces Converter Online
Expand tab characters into a fixed number of spaces. Choose a width for pasted code, plain-text samples, or fixtures that require literal spaces.
Spaces to Newlines Converter Online
Turn runs of spaces and tabs into single line breaks. Split pasted words or tokens into one item per line while preserving existing line breaks.
Newlines to Spaces Converter Online
Join pasted lines into a single line by replacing Unix and Windows line breaks with spaces. Preserve the original words, tabs, and inline spacing.
Lowercase Text Converter Online
Convert uppercase and mixed-case text to lowercase. Keep spaces, punctuation, and line breaks while preparing labels, drafts, or comparison samples.
Uppercase Text Converter Online
Turn letters into uppercase for headings, labels, and test strings. Preserve punctuation, existing spacing, and line breaks in the converted result.
Random Case Text Converter Online
Randomize letter casing in pasted text. Generate a mixed-case variant for display examples or test data while keeping digits, punctuation, and spaces.
Title Case Text Converter Online
Capitalize the start of each matched word and lowercase the remaining letters. Format draft headings and labels with consistent word-by-word casing.
Invert Text Case Online
Toggle the casing of each letter in pasted text. Turn uppercase into lowercase and lowercase into uppercase while keeping punctuation and layout.
Capitalize Words and Sentences Online
Capitalize the first letter of each matched word or sentence while preserving existing capitals elsewhere. Format drafts, labels, and short headings.
Repeat Text Online
Repeat a word, line, or block up to 1,000 times. Join the copies with a newline, tab, custom separator, or no separator for a repeatable text fixture.
Find and Replace Text Online
Replace every occurrence of a literal phrase in pasted text. Match case when spelling matters, or leave the replacement empty to remove the matches.
Reverse Text and Word Order Online
Reverse an entire block, reverse characters within each line, or reverse word order. Choose the mode that fits your text fixture or display example.
Rotate Text Online
Rotate characters left or right by a chosen count. Wrap characters around the ends to create circular shifts for text examples and order tests.
Rotate Text Left Online
Move the first characters of a string to the end. Set the shift count and see how a left rotation wraps text while preserving the moved group.
Rotate Text Right Online
Move characters from the end of a string to the front. Choose a right-shift count to produce a circular rotation while keeping the original order.
Transform Text Case Online for Code
Transform words or identifiers into camelCase, PascalCase, snake_case, kebab-case, or CONSTANT_CASE. Reformat a mixed-case name for code or a slug.
Truncate Text Online with a Suffix
Keep the first characters of a longer string and append a suffix if it was shortened. Preview or copy the result with a custom ellipsis or no suffix.
Trim Whitespace from Each Line Online
Remove leading or trailing whitespace from each line. Choose which edge to trim while keeping internal spacing and the original line structure.
Center Text in Fixed Width Online
Center each line in a fixed-width field by adding padding on both sides. Set a target width and choose spaces or a visible padding character.
Right Align Text in Fixed Width Online
Right-align each line by adding leading padding up to a target width. Use spaces for plain-text columns or a visible character for a fixture.
Left Pad Text Online with Custom Fill
Add spaces, zeros, or another character before each line until it reaches a target length. Preserve existing spacing for fixed-width fields and labels.
Right Pad Text Online with Custom Fill
Append spaces or a custom fill character to short lines. Extend labels and records to a target length while keeping their existing leading and trailing space.
Justify Text Online to a Fixed Width
Wrap paragraphs at a chosen width and expand gaps between words on eligible lines. Create aligned margins in a monospaced plain-text layout.
Format Text into Aligned Columns Online
Arrange one item per line into aligned plain-text columns. Set the number of columns and the spacing between them for a monospaced list or report.
Word Wrap Text Online by Line Width
Insert line breaks at word boundaries using a chosen maximum width. Reflow each input line while keeping existing breaks and long words intact.
Letter Counter Online
Compare basic A–Z and Unicode letter totals with character counts that include or exclude whitespace. Inspect digits, accents, and spaces in pasted text.
Word Counter Online with Unique Totals
Count word matches, case-insensitive unique words, and average matched word length. Compare repeated terms and check how punctuation affects the totals.
Line Counter Online
Count total, non-empty, and blank lines in pasted text. See how whitespace-only rows and a final newline affect a list, fixture, or copied export.
Paragraph Counter for Plain Text Online
Count nonempty paragraphs separated by blank or whitespace-only lines. Check the structure of pasted drafts, notes, and plain-text document fixtures.
Text Length and UTF-8 Byte Counter
Measure Unicode code points, UTF-8 bytes, lines, and word matches in pasted text. Compare length limits for accented characters, emoji, and whitespace.
Letter Frequency Counter with Bar Chart
Count each letter and show its percentage of all counted letters. Compare uppercase and lowercase separately or combine them in a text frequency table.
Word Frequency Counter and Percentages
Rank matching words by count and percentage. Filter out short tokens and limit how many rows appear when reviewing repeated terms in pasted text.
Phrase Frequency Counter Online
Count repeated phrases of two to five words. Rank overlapping sequences by frequency and see what share each phrase contributes to the full sample.
Text Statistics and Reading Time Online
Measure words, lines, paragraphs, and characters in one report. Review estimated reading and speaking times and a basic English readability level.
Sort Text Lines Alphabetically Online
Sort whole lines alphabetically in either direction. Use natural ordering for numbered labels and control whether letter case affects the comparison.
Sort Lines by Their First Number Online
Sort whole lines by the first signed number found on each line. Order mixed labels, decimals, and numbered records from smallest or largest first.
Sort Words Alphabetically Online
Sort whitespace-separated words from A to Z or Z to A. Combine words from several lines into a single space-separated list and keep their spelling.
Sort Text Lines by Length Online
Order whole lines by measured length, shortest or longest first. Keep their contents, including spaces and duplicates, while changing their order.
Sort IPv4 Addresses Numerically Online
Sort lines by IPv4 address in ascending or descending numeric order. Keep descriptive text on the same line and compare the four octets in sequence.
Add Line Numbers to Text Online
Number each line of pasted text. Choose a starting number, customize the separator, and add leading zeroes when a list needs aligned number labels.
Add a Prefix to Each Text Line Online
Insert a custom prefix at the start of every line. Keep indentation and line order, and choose whether to skip blank or whitespace-only lines.
Append a Suffix to Each Line Online
Append a custom suffix to each line of pasted text. Keep the original order and spacing, with an option to leave blank lines unchanged in the output.
Add Prefix and Suffix to Lines Online
Add a prefix and a suffix to each line in one pass. Wrap list items with quotes or brackets and choose whether to leave blank lines unchanged.
Find the Longest Line in Text Online
Find every line tied for the maximum length. Keep their original order and whitespace when checking fixed-width records, labels, or plain-text exports.
Find the Shortest Line in Text Online
Find the shortest nonempty lines in pasted text. Return every tie in input order and see how existing spaces and tabs affect the comparison.
Remove Duplicate Text Lines Online
Remove repeated lines while retaining the first occurrence and original order. Compare lines exactly or ignore casing and whitespace at their edges.
Remove Empty and Blank Lines Online
Delete empty and whitespace-only lines from pasted text. Keep the spacing and order of remaining lines when cleaning a list, snippet, or fixture.
Shuffle Text Lines in Random Order Online
Shuffle the order of pasted lines while keeping their contents, duplicates, and blank rows. Generate a mixed order for an activity or text fixture.
Join Text Lines with a Delimiter Online
Combine pasted lines with a comma, tab, or custom delimiter. Trim lines and drop blanks when desired, or preserve every original line position.
Reverse the Order of Text Lines Online
Flip pasted lines from last to first while keeping each line's characters and spacing intact. Reverse lists, records, and other multiline text.
Filter Text Lines by Keyword Online
Keep or exclude lines that contain an exact substring. Choose case-sensitive matching and preserve the original order of the lines you keep.
Grep Lines Online with a Regex Pattern
Keep or exclude entire lines using a JavaScript regular expression. Set flags for case matching and use anchors when the start or end of a line matters.
Get the First Lines of Text Online
Extract the first lines of a pasted block. Choose how many line positions to keep, including blank rows, for a quick preview of a list or export.
Get the Last Lines of Text Online
Extract the final lines of a pasted block. Choose how many positions to keep and preserve their original order, including any final blank rows.
Extract a Range of Text Lines Online
Copy an inclusive range of lines by start and end number. Preserve blank positions and original order when taking an excerpt from pasted text.
Split Text by a Delimiter Online
Split text at each literal delimiter and put each piece on its own line. Use commas, tabs, or a custom separator to inspect a simple text list.
Split Text into One Word per Line Online
Extract word matches from a passage and put each on its own line. Preserve their order and see how spaces, digits, and punctuation affect the split.
Generate Sample Text from Regex Online
Generate up to 20 sample strings from supported regex patterns. Use simple character classes, literals, and choices to create small example fixtures.
Extract Regex Matches from Text Online
Extract matching fragments or capture groups from pasted text. Review each result on its own line and use flags to control which text is matched.
Find and Replace with Regex Online
Find text with a regular expression and replace matching parts. Use capture groups or flags to rewrite repeated fields throughout a pasted block.
Extract Email Addresses from Text Online
Find email address matches in pasted text and list them on separate lines. Keep every occurrence or deduplicate the matches for easier review.
Extract Web URLs from Text Online
Find HTTP and HTTPS links in pasted text. Remove exact duplicates if desired and inspect the paths, query strings, and fragments in the result.
Extract Integers and Decimals Online
Extract numeric matches from text as separate lines. Filter for integers or decimals and choose whether to retain repeated spellings in the output.
Remove Accents from Text Online
Remove common combining accent marks from pasted text. Simplify many accented Latin letters while preserving case, punctuation, and surrounding spaces.
Trim Whitespace from Lines Online
Trim spaces and tabs from both edges of each line. Preserve internal whitespace and blank line positions while cleaning pasted labels or text fixtures.
Remove All Whitespace from Text Online
Delete spaces, tabs, and line breaks throughout pasted text. Join the remaining characters into one compact value while keeping their original order.
Remove Punctuation and Symbols Online
Strip punctuation and symbol characters from text while keeping its remaining letters, digits, and whitespace. Clean a sample for text comparison.
Add Thousands Separators to Text Online
Group long runs of digits in threes with a comma or custom separator. Format whole-number amounts inside pasted text and keep their surrounding labels.
Add Slashes to Escape Quotes Online
Escape straight quotes, backslashes, and null characters in pasted text. Inspect the escaped form or copy it into a compatible plain-text fixture.
Strip Slashes from Escaped Text Online
Restore straight quotes, literal backslashes, and null characters from supported escapes. Decode one layer and preserve unmatched backslash sequences.
Merge Two Text Lists in Order Online
Combine two line-separated lists into one. Append the second list after the first while retaining repeated items and the order of both source lists.
Zip Two Lists by Position Online
Pair corresponding items from two line-separated lists. Set a custom separator and keep rows with unmatched items when the two lists differ in length.
Find Common Items in Two Lists Online
Find items that appear in both lists. Compare entries with or without case sensitivity and preserve the matching spellings from the first list.
Find Items Unique to One of Two Lists
Compare two lists and return items that occur in just one. Choose case-sensitive matching and see the first list's exclusive items before the second's.
Printf Text and Number Formatter Online
Apply a printf-style template to comma- or tab-separated rows. Format text, integers, decimals, and hexadecimal values in a repeatable plain-text layout.
Convert Text to Morse Code Online
Encode letters, digits, and supported punctuation as Morse dots and dashes. Keep text lines separate and copy word groups divided by slashes.
Decode Morse Code to Text Online
Decode space-separated Morse groups into letters and digits. Use a slash or wider gap to separate words and preserve line breaks between messages.
About Text & String Utilities on FreeHostingTrust
Our text & string utilities collection provides production-ready web utilities engineered for front-end developers, backend engineers, DevOps specialists, and security analysts. Every tool in this directory executes strictly on your local machine using standard JavaScript and WebAssembly runtimes, ensuring confidential credentials, sensitive source code, and internal IP addresses are never exposed or transmitted externally.