Docuboxer
By ··Updated: ·9 min read

10 text utilities you'll actually use every week

Changing case, removing duplicate lines, generating filler text, converting number bases and escaping HTML: the small jobs that keep coming back.

Some text fixes do not justify opening a spreadsheet or asking a developer for a script: a name column that arrived in ALL CAPS, a mailing list with repeats, a title that has to become a URL. Each takes thirty seconds, but they keep coming back. This is the list of ten that come up most, with what each tool does and where it falls short:

  • Switching between UPPERCASE, lowercase and Title Case
  • Converting text to camelCase or snake_case
  • Sorting lines and removing duplicates from a list
  • Generating filler text (Lorem Ipsum), Latin or Spanish
  • Converting between binary, octal, decimal and hexadecimal
  • Encoding and decoding HTML entities
  • Escaping code so a page displays it instead of running it
  • Counting words and characters against a hard limit
  • Comparing two versions of a text line by line
  • Turning a title into a valid URL slug

All of them work in your browser. Further down, in "What happens to what you paste", you will find how to verify that in a minute.

Changing case and name format

The usual trigger: someone exports a catalog from a legacy system and every field lands in ALL CAPS. Pasting that into a report or an email looks sloppy. The case converter offers ten modes in one box: UPPERCASE, lowercase, Title Case, Sentence case, aLtErNaTiNg, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE.

The first five keep accents and special letters ("canción" becomes "CANCIÓN"). The identifier modes, from camelCase onward, strip them on purpose, because a variable name with an accented letter fails in many languages. If you are renaming keys between an API that returns customer_name and code that expects customerName, that is the mode you want.

Title Case needs a second look. According to the MLA Style Center, headline style capitalizes all words except prepositions and the common coordinating conjunctions. The tool lowercases a short fixed list ("a", "the", "of", "in", "with" and a few more) and capitalizes prepositions such as "between" or "through", which MLA keeps lowercase, so a headline that matters deserves one last read.

With Spanish text the gap is wider. The Manual MLA recommends a capital only on the first letter of the title of a non-periodical work in Spanish (proper nouns keep theirs, as in any sentence). Title Case capitalizes most words, and Sentence case lowercases everything, so after using it you restore the proper nouns by hand.

Sorting lines, removing duplicates, cleaning lists

Before importing a mailing list into an email tool or feeding URLs to a crawler, remove the repeats: writing to the same contact twice or crawling the same page twice burns quota and muddies the results. The text cleaner always applies its steps in the same order: trim spaces, collapse inner spaces, drop empty lines, deduplicate, sort, and last, number, add a prefix or suffix and join into one line.

Two practical details. You can compare ignoring case and spaces, so [email protected] and [email protected] count as the same record. And alphabetical order follows locale rules: the Spanish collator puts "ñ" between "n" and "o" and keeps "árbol" next to "arbol", where a code-point sort sends accented words to the end.

Generating filler text for layouts

When the design is ready and the final copy is not, obvious filler keeps a stakeholder from mistaking a draft for the finished page. The Lorem Ipsum generator produces paragraphs, sentences or words using a classic Latin or a Spanish vocabulary.

A paragraph of Latin reads as filler at a glance. A plausible one in Spanish can slip through a rushed review and get published. Use the Spanish vocabulary when the layout needs to test how real text breaks (accents, long words) and keep Latin for everything else.

Converting binary, octal, decimal and hexadecimal

A Unix permission like chmod 755 is three octal digits. The GNU coreutils manual explains that each class of user (owner, group, everyone else) needs three bits, one each for read, write and execute, and that those three bits are written as one octal digit. A 7 adds read (4), write (2) and execute (1); a 5 leaves read and execute. A color like #1a73e8 is hexadecimal. A network mask or a flag in a log sometimes shows up in binary.

The number base converter translates between binary, octal, decimal and hex, and accepts any base from 2 to 36. One useful note for colors: MDN describes the hex color as #RRGGBB, two digits each for red, green and blue. Two hex digits fit in one byte, 0 to 255.

Encoding HTML entities and escaping code

Pasting an HTML snippet into a blog post, a rendered README or a CMS field carries a specific risk: the browser sees <div> and opens a tag instead of showing the text. The HTML entity encoder turns those characters into safe entities (&lt;, &gt;, &amp;) and also generates JavaScript string escapes, so quotes and line breaks can go inside code without breaking the syntax.

Escaping < and & is what separates displaying code from running it. The OWASP XSS prevention cheat sheet says to use HTML entity encoding for any variable placed in the content of an element, and lists five characters: &, <, >, the double quote and the single quote. The tool does that for you. It helps you paste an example into an article. It does not sanitize user input in your application, which your framework has to do automatically.

Four more worth bookmarking

  • Compare text: shows line by line what changed between two versions of a contract, a config file or a paragraph, before you overwrite one with the other.
  • Slug generator: turns a title into a clean URL, accents stripped. Google recommends hyphens to separate words and treats capital letters as different URLs, so lowercase with hyphens is the safe choice. For the rest of the SEO layer, see the guide to free SEO tools.
  • Regex tester: runs a regular expression against real sample strings before it ships in code, instead of debugging it blind.
  • Word counter: gives the exact length before a hard limit, such as a meta description, a social post or a form field. It also confirms how many lines are left after cleaning a list.

What happens to what you paste

Text pasted into these boxes is rarely a toy example. It is often a real customer list, a config file or a snippet with personal data. The tools on this page process the text in your browser, and you can verify it without taking our word for it: open the developer tools, go to the Network tab, paste the text and run the tool. Analytics requests from the page itself are normal. What should not appear is a POST request the size of your text. The full procedure, step by step, is in the post on JSON formatter privacy.

Frequently asked questions

Do these text tools upload my content to a server?

No. Case conversion, deduplication, base conversion and HTML escaping run in your browser, and the text you paste is not sent anywhere. That matters because these boxes often get real material: customer lists, emails, config files. You can check it yourself: open the Network tab in your browser's developer tools, paste the text and look for a request the size of your text. The JSON formatter post walks through the steps.

What does Title Case do to a Spanish text?

It capitalizes every word except a fixed list of articles, prepositions and conjunctions ("de", "los", "con", "y"...), unless they open the text. That is a headline style borrowed from English. The Spanish rule for titles of works is different: a capital only on the first word and on proper nouns. The "Sentence case" mode follows it, but it lowercases everything, so you have to put proper nouns back by hand.

When would I need camelCase or snake_case instead of Title Case?

When you rename keys between systems with different conventions: a REST API returning "customer_name" that a JavaScript codebase expects as "customerName", or the reverse when mapping into a snake_case database. These modes also strip accents, because an identifier with an accented letter breaks in many languages. Doing it by hand, field by field, is where typos creep in.

What is a slug and what does the generator do with accents?

A slug is the part of a URL that names a page: lowercase, no spaces, words joined by hyphens. The generator removes accents, lowercases and joins with hyphens. Google recommends hyphens over underscores, asks for non-ASCII characters to be percent-encoded, and treats /APPLE and /apple as different URLs, so pick one format before you publish.

Why do < and & need escaping before showing HTML as text?

Because a browser treats any < as the start of a tag. Paste raw HTML into a page without escaping and the browser runs it instead of showing it, and if that HTML comes from a user, that is the mechanism behind XSS. Escaping the less-than sign and the ampersand, that is, replacing them with their HTML entities, turns executable markup into plain text. OWASP asks for this encoding for any untrusted data placed in the body of a page.

Is there a size limit on the lists or texts I can process?

There is no quota and no account, but your device's memory does the work. A list of a few thousand lines processes instantly. Files of several megabytes can pause for a moment, and sooner on an old phone than on a laptop. If the tab hangs, split the text in two and process each half.

Try the case converter

Paste your text, pick a mode and copy the result. Free, no account.

Open the converter →

Sources

Related tools

You might also like: 13 privacy-first developer tools.