Text Tools

Text & String Utilities

Transform text: uppercase, lowercase, reverse, camelCase, slug, trim, count characters, words, lines, and more.

Your data never leaves your browser — nothing is sent to any server.

0 chars0 words0 lines0 sentences0 paragraphs0 B

Case

Dev Case

Transform

Lines

Encoding

Extract

Output
How to use
  1. 1

    Paste or type your text

    Enter the text you want to transform in the input area. The stats panel immediately shows character, word, line, sentence, and paragraph counts.

  2. 2

    Click a transformation button

    Choose from the organized grid of transformation buttons. Each button applies the transform and displays the result in the output area below. Try multiple transforms to compare.

  3. 3

    Copy the result

    Click the Copy button to copy the transformed output to your clipboard. You can also select and copy text directly from the output area.

  4. 4

    Chain transformations

    You can apply multiple transformations by copying the output, pasting it back as input, and applying another transformation. For example, trim whitespace first, then convert to snake_case.

FAQ (6)
What text transformations are available?

The tool includes case conversions (uppercase, lowercase, title case, sentence case, alternating case), developer case conversions (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE), text transforms (reverse text, reverse words, trim whitespace, remove extra spaces), line operations (sort A-Z, sort Z-A, remove duplicates, remove empty lines, number lines), encoding (URL encode/decode, HTML encode/decode), and extraction (emails, URLs, numbers).

How does title case differ from sentence case?

Title case capitalizes the first letter of every word: 'the quick brown fox' becomes 'The Quick Brown Fox'. Sentence case only capitalizes the first letter of each sentence: 'the quick brown fox. a lazy dog.' becomes 'The quick brown fox. A lazy dog.' Title case is used for headings; sentence case for normal prose.

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter and capitalizes subsequent words: 'myVariableName'. PascalCase (also called UpperCamelCase) capitalizes every word including the first: 'MyClassName'. In most conventions, camelCase is used for variables and functions, PascalCase for classes and types.

How does URL encoding work?

URL encoding (percent encoding) replaces unsafe ASCII characters with a % followed by two hexadecimal digits. Spaces become %20, ampersands become %26, etc. This ensures special characters don't break URL structure. URL decoding reverses the process, restoring the original characters.

Can I extract emails and URLs from text?

Yes. The Extract Emails and Extract URLs buttons use regular expressions to find and list all email addresses or URLs in your text. Each match appears on its own line in the output, making it easy to copy the extracted data.

Is my text data sent to a server?

No. All transformations happen locally in your browser using JavaScript string methods. Your text never leaves your device — there are no API calls, no logging, and no server processing.

Learn more

Text & String Utilities — Transform, Convert, and Analyze Text

String manipulation is one of the most frequent tasks in software development. Converting between naming conventions, cleaning up data, extracting patterns, encoding for different contexts — developers do these operations dozens of times a day. This tool provides a comprehensive suite of text transformations that run instantly in your browser.

Case Conversion for Every Convention

Different programming languages and contexts use different naming conventions. JavaScript uses camelCase for variables and PascalCase for classes. Python uses snake_case. CSS and URLs use kebab-case. Environment variables use CONSTANT_CASE. Converting between these manually is tedious and error-prone. This tool handles all major case conventions with a single click, properly splitting on word boundaries regardless of the input format.

Text Cleaning and Normalization

Data from user input, web scraping, or legacy systems often contains extra whitespace, duplicate lines, empty lines, and inconsistent formatting. The text utility tools address these issues: trim leading and trailing whitespace, collapse multiple spaces into one, remove empty lines, deduplicate lines, and sort lines alphabetically. These operations are essential for preparing data for import, cleaning CSV columns, and normalizing configuration files.

URL and HTML Encoding

Proper encoding prevents injection attacks and ensures data integrity across different transport layers. URL encoding converts special characters to percent-encoded form for safe use in query parameters and API calls. HTML encoding converts characters like <, >, and & to their entity equivalents, preventing XSS vulnerabilities when displaying user-generated content. Both operations and their inverses are available with one click.

Data Extraction

Extracting structured data from unstructured text is a common requirement. The extraction tools use regular expressions to find and list all email addresses, URLs, or numbers in your text. This is useful for building contact lists from web pages, extracting links from documentation, or pulling numeric data from reports — all without writing a single line of code.

Text Statistics

The stats panel provides real-time counts for characters, words, lines, sentences, paragraphs, and byte size. These metrics are useful for checking content against length limits (tweets, meta descriptions, database columns), estimating reading time, and ensuring content meets requirements for SEO or publishing platforms.

Privacy

Every transformation runs entirely in your browser using native JavaScript string methods. No text is transmitted to any server. This makes the tool safe for processing sensitive content including internal documentation, API keys embedded in text, personal data, and proprietary source code.