String Utilities
Reverse, shuffle and manipulate text strings
Utilidades de Texto
Colección de operaciones comunes para manipular cadenas de texto: cambio de mayúsculas, inversión, conteo, limpieza de espacios y más. Todas las transformaciones se realizan localmente.
Online String Utilities - Transform Text and Strings
Available text transformations
This tool offers more than sixteen text transformations: uppercase (HELLO WORLD), lowercase (hello world), capitalise the first letter, title case (Hello World), camelCase (helloWorld), PascalCase (HelloWorld), snake_case (hello_world), kebab-case (hello-world), URL slug, reverse the text, collapse extra spaces, strip all spaces, remove line breaks, URL encode and decode, and more. Each transformation earns its place in a different corner of programming, SEO and data processing.
Use cases for developers
String transformations are everywhere in development: camelCase and PascalCase for variable and class names in JavaScript and TypeScript, snake_case for Python and SQL databases, kebab-case for CSS classes and URLs, slugs for friendly SEO URLs, title case for displaying formatted headings, whitespace collapsing to clean user input, and string reversal for algorithms and puzzles. This tool saves you from writing throwaway code for one-off transformations or from guessing how a string will come out.
Naming conventions in programming
Every language and context carries its own conventions: JavaScript uses camelCase for variables and functions and PascalCase for classes, Python prefers snake_case, CSS uses kebab-case for class names, SQL databases traditionally use snake_case, URLs should use kebab-case or slugs with no spaces or special characters, and constants are usually SCREAMING_SNAKE_CASE. Following the convention improves readability and maintainability, and this tool converts between styles quickly when you work across several technologies at once.
If you work with this tool, you will probably also find these useful Text Case Converter, Slug Generator, Word Counter, Text Diff.
Frequently asked questions
What is the difference between a slug and kebab-case?
Kebab-case only turns spaces into hyphens and lowercases the text. A slug is more aggressive: it also strips special characters, accents and non-ASCII characters to produce a URL-safe string. A phrase with accents becomes hyphenated but still accented in kebab-case, while the slug version replaces every accented letter with its plain equivalent.
Why do some transformations lose information?
Transformations such as slugging and whitespace collapsing are destructive by design. "Hello World" and "Hello World" produce the same output once extra spaces are removed. If you need to go back, keep the original. These operations exist for normalisation, not for reversible encoding.
How does it handle Unicode characters and emoji?
The tool handles full UTF-8 including accented and Unicode characters. For slugs, accents are normalised to their base letters. Emoji are generally dropped from slugs but preserved in other transformations. Results can vary depending on the specific character.
Can I chain several transformations together?
The output of one transformation can be pasted back in as the input for the next. To automate it in code, look at libraries such as Lodash, with _.camelCase and _.kebabCase, or the change-case package on npm, which let you chain transformations programmatically.