Skip to main content
UnblockDevs
✏️

String Utilities

Case conversion, line tools, text extraction, encode/decode — all in one place

100% in-browserNo signupFree forever

Try an example

Examples marked 📋🔀📄🔠 activate Bulk Mode
18chars1words1lines1unique words~1minread time
Separator
camelCaseJS/TS

JS variables, JSON keys

getUserProfileData
PascalCaseReact

Classes, React components

GetUserProfileData
snake_casePython

Python, Ruby, DB columns

get_user_profile_data
kebab-caseCSS

CSS classes, URLs, HTML attrs

get-user-profile-data
SCREAMING_SNAKEConst

Constants, env variables

GET_USER_PROFILE_DATA
Title CaseUI

Headings, display names

Get User Profile Data
dot.caseConfig

Config keys, Java packages

get.user.profile.data
path/casePath

File paths, routes

get/user/profile/data
flatcaseLegacy

Legacy systems, compact IDs

getuserprofiledata
COBOL-CASECOBOL

COBOL, HTTP headers

GET-USER-PROFILE-DATA
Sentence caseText

Sentences, descriptions

Getuserprofiledata
iNVERSE cASEStyle

Emphasis / stylistic

GETuSERpROFILEdATA

Share Your Feedback

Tell us what's working, what's broken, or what you wish we built next — it directly shapes our roadmap.

You make the difference

Good feedback is gold — a rough edge you hit today could be smoother for everyone tomorrow.

  • Feature ideas often jump the queue when lots of you ask.
  • Bug reports with steps get fixed faster — paste URLs or examples if you can.
  • Name and email are optional; we won't use them for anything except replying if needed.

Stay Updated

Get the latest tool updates, new features, and developer tips delivered to your inbox.

What you'll get
  • Product updates & new tools
  • JSON, API & developer tips
  • Unsubscribe anytime — no hassle

Get in touch

Feature ideas, bugs, or a quick thanks — we read every message.

String Utilities — The Only Developer Text Tool You Need

String Utilities is a comprehensive text transformation toolkit built for developers. Unlike other tools that make you navigate between pages or click separate convert buttons, this tool shows all 12 case format conversions simultaneously in real time. Switch between camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE_CASE, and 7 more formats instantly as you type.

Beyond case conversion, String Utilities includes a Line Tools tab for sorting, deduplicating, and filtering lines; an Extract tab for pulling emails, URLs, IP addresses, and other patterns from raw text; a Transform tab for cleaning whitespace and replacing text; and an Encode/Decode tab for Base64, URL encoding, HTML entities, JSON stringify, ROT13, hex, and binary encoding — all running 100% in your browser.

How it works

Instant Transforms, Zero Config

01

Paste any text

Type or paste a variable name, sentence, or block of text into the input area.

02

All formats appear instantly

The Case Formats tab shows all 12 conversions simultaneously — no button needed.

03

Copy with one click

Click the copy icon on any format card to copy it to your clipboard.

04

Use other tabs

Switch to Extract, Encode/Decode, Line Tools, or Transform for more operations.

Use cases

What Developers Use This For

🐪

API response mapping

Convert snake_case API keys to camelCase for JavaScript objects, or vice versa.

🗄️

Database columns

Convert PascalCase class names to snake_case database column names.

🔐

Base64 tokens

Encode auth tokens, binary data, or API payloads to Base64 for safe transmission.

📧

Email extraction

Extract all email addresses from a CSV, log file, or customer data export.

🧹

Data cleaning

Remove duplicate lines, sort alphabetically, filter by keyword, trim whitespace.

🔗

URL encoding

Encode query string parameters, decode percent-encoded URLs for debugging.

FAQ

Frequently Asked Questions

1How do I convert a camelCase API response to snake_case for a database?
Paste the camelCase key names into String Utilities — the Case Formats tab instantly shows the snake_case equivalent alongside all other formats. For bulk conversion in code: Python uses re.sub(r"(?<!^)(?=[A-Z])", "_", name).lower(). JavaScript uses str.replace(/([A-Z])/g, "_$1").toLowerCase(). ORMs like SQLAlchemy and Django typically handle this mapping automatically.
2How does the case conversion algorithm handle acronyms?
The algorithm splits on common separators (spaces, hyphens, underscores, dots, slashes) and also detects camelCase transitions (lowercase followed by uppercase). Each detected "word" is then joined with the appropriate separator and casing for the target format.
3Is Base64 encoding encryption?
No. Base64 is an encoding scheme, not encryption. It converts binary data to ASCII text for safe transmission, but provides no security — anyone can decode it. Use it for encoding data in URLs or HTTP headers, not for hiding sensitive information.
4What regex is used to extract email addresses?
The email extractor uses a robust pattern that matches the most common email formats: [a-zA-Z0-9._%+−]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}. It handles subdomains, plus-sign aliases, and international TLDs.
5What string utilities are available?
String Utilities provides case conversion (camelCase, snake_case, PascalCase, kebab-case, SCREAMING_SNAKE_CASE, Title Case, and more), text extraction (emails, URLs, IPs, phone numbers), encoding and decoding (Base64, URL, HTML entities, JSON stringify, ROT13, hex, binary), and line tools (sort, deduplicate, filter, reverse). All operations run entirely in your browser.
6How do I convert a string to camelCase?
Paste your text into the String Utilities input and the Case Formats tab instantly shows the camelCase version. The converter handles spaces, hyphens, underscores, and existing PascalCase as word separators, lowercases the first word, and capitalizes the first letter of each subsequent word.
7How do I convert a string to snake_case?
Paste your text into String Utilities and the Case Formats tab instantly shows the snake_case version. The converter splits on spaces, hyphens, camelCase transitions, and existing separators, then joins the words with underscores and lowercases everything.
8How do I remove whitespace from a string?
Go to the Transform tab in String Utilities and use the "Trim" or "Remove all whitespace" option. Trim removes leading and trailing whitespace only, while the remove option strips all spaces and tabs from the string. You can also collapse multiple consecutive spaces into one using the normalize whitespace option.
9How do I reverse a string online?
Paste your text into String Utilities, go to the Transform tab, and click "Reverse". The tool reverses the entire string character by character. For reversing line order rather than individual characters, use the Line Tools tab and choose "Reverse lines".
10How do I count words and characters in text?
String Utilities displays a live character count, word count, and line count in the statistics bar below the input field as you type or paste text. No button click is required — the counts update instantly with every keystroke.
11How do I remove duplicate lines from text?
Go to the Line Tools tab in String Utilities and click "Remove duplicates". The tool removes repeated lines, keeping the first occurrence of each unique line. You can also choose case-insensitive deduplication to treat "Hello" and "hello" as duplicates.
12How do I escape a string for JSON?
Go to the Encode/Decode tab and click "JSON Stringify". This wraps your string in JSON quotes and escapes backslashes, double quotes, newlines, tabs, and other control characters so the result is a valid JSON string literal — equivalent to calling JSON.stringify(str) in JavaScript.
13How do I convert a string to Base64?
Paste your text into String Utilities, go to the Encode/Decode tab, and click "Encode" next to Base64. The tool uses the browser's built-in btoa() function with proper UTF-8 handling for non-ASCII characters. To decode, paste a Base64 string and click "Decode".
14How do I convert text to hex?
In the Encode/Decode tab, click "Text to Hex". Each character is converted to its hexadecimal ASCII code, separated by spaces. For example, "Hello" becomes "48 65 6c 6c 6f". To convert back, use "Hex to Text".
15How do I sort lines alphabetically?
Go to the Line Tools tab and click "Sort A-Z" for ascending alphabetical order or "Sort Z-A" for descending. You can also sort numerically if your lines contain numbers. The sort is case-insensitive by default, but a case-sensitive option is available.
16How do I convert between Unix and Windows line endings?
Go to the Transform tab in String Utilities and use the line ending converter. "Convert to LF" replaces all CRLF (\r\n) sequences with LF (\n) for Unix/macOS compatibility. "Convert to CRLF" does the reverse for Windows compatibility. The current line ending style is detected and shown automatically.

Last updated: May 2026

Feedback for string_utilities

Tell us what's working, what's broken, or what you wish we built next — it directly shapes our roadmap.

You make the difference

Good feedback is gold — a rough edge you hit today could be smoother for everyone tomorrow.

  • Feature ideas often jump the queue when lots of you ask.
  • Bug reports with steps get fixed faster — paste URLs or examples if you can.
  • Name and email are optional; we won't use them for anything except replying if needed.

Stay Updated

Get the latest tool updates, new features, and developer tips delivered to your inbox.

What you'll get
  • Product updates & new tools
  • JSON, API & developer tips
  • Unsubscribe anytime — no hassle

Get in touch

Feature ideas, bugs, or a quick thanks — we read every message.