Bytepliers Text tools: case, word count, find and replace, slugs
Reference for the 10 Bytepliers Text tools: String Case, Word Counter, Find & Replace, Whitespace Cleaner, Word Frequency, Reverse, Slugs, Strip, Ciphers, ASCII Table.
Updated 5 min read
On this page
The Text group works on prose and strings. Line-by-line tools are in the Lines group. For the other groups, see the Bytepliers tools list.
| Tool | Id | Subtitle |
|---|---|---|
| String Case | textCase | camelCase, snake_case, kebab-case and more |
| Word Counter | wordCounter | Words, characters, sentences, reading time and keyword density |
| Find & Replace | findReplace | Replace text with ordered plain or regex rules, in bulk |
| Whitespace Cleaner | whitespace | Trim, collapse spaces, tabs ↔ spaces, straighten quotes |
| Word Frequency | wordFrequency | Word and letter frequency tables, most frequent first |
| Reverse & Flip | reverseText | Reverse characters, words or lines; flip text upside down |
| Slug Generator | slugify | URL slugs and file-safe names from any text |
| Strip Characters | stripChars | Remove punctuation, emoji, accents, tags or non-ASCII |
| ROT13 & Ciphers | ciphers | ROT13, ROT47, Caesar, Atbash and Vigenère |
| ASCII Table | asciiTable | ASCII and Unicode tables with codes and escapes |
The 1.1 text tools (all except String Case and ASCII Table) update live as you type, accept up to 64 MB, and remember their options between launches. Many have Apply to Input, which replaces the input with the result so you can chain operations.
String Case
Id textCase.
- One line of input: shows every style at once: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, dot.case, lower case and UPPER CASE.
- Several lines: each line is converted with Convert each line to (camelCase by default).
- Splitting: acronyms and digits split correctly, as in
XMLHttpRequestorHTTP2Server. - Limit: 2 MB.
- Transforms: camelCase, snake_case, kebab-case, CONSTANT_CASE, PascalCase, Title Case, UPPERCASE, lowercase.
Word Counter
Id wordCounter. New in 1.1.
- Counts: words, characters (as a person counts them, so an emoji is 1), characters without spaces, sentences, paragraphs, lines, unique words, average word length, longest word and bytes.
- Times: reading time at 238 words per minute and speaking time at 150, both changeable in the options menu.
- Keywords: the 10 most frequent words with their density. Ignore Stop Words in Keywords is on.
- Selection: select part of the text and the counts switch to the selection.
Find & Replace
Id findReplace. New in 1.1.
- Rules: a list of find → replace rules that run top to bottom. Add Rule adds one; right-click a rule for Move Up, Move Down and Delete Rule. A checkbox turns a rule off without deleting it.
- Per-rule switches:
.*regular expression,Aamatch case,ab|whole words only, andABpreserve case ("Colour" → "Color", "COLOUR" → "COLOR"). All are off for a new rule. - Regex templates:
$1and\nwork in the replacement. - Feedback: each rule shows its number of replacements. An invalid pattern shows ⚠ and is skipped. Replacements are highlighted in the result (up to 20,000 highlights; highlighting turns off for very large text).
- Rules are saved between launches. Clear Rules starts over.
Whitespace Cleaner
Id whitespace. New in 1.1.
- Clean-ups: Normalize Line Endings, Non-Breaking Spaces → Space, Remove Zero-Width Characters, Smart Quotes & Dashes → ASCII, Tabs → Spaces, Leading Spaces → Tabs, Trim Lines, Remove Trailing Spaces, Collapse Spaces, Remove Empty Lines, Collapse Blank Lines and Trim Start & End.
- Defaults: Normalize Line Endings, Non-Breaking Spaces → Space, Remove Zero-Width Characters, Remove Trailing Spaces, Collapse Blank Lines and Trim Start & End are on.
- Presets: Defaults, Everything (all but Leading Spaces → Tabs and Remove Empty Lines) and None. Tab Width is 4.
- Counts: each clean-up shows how many changes it made.
- Transform: Clean Whitespace (
clean-whitespace), with the default clean-ups.
Word Frequency
Id wordFrequency. New in 1.1.
- Count: Words (default) or Letters, most frequent first. Click a column header to sort.
- Options: Ignore Case (on), Skip Stop Words (off; English words such as "the" and "of"), Minimum Length (1) and Include Digits (off).
- Export: copy the table as CSV (⇧⌘C) or Save as CSV….
Reverse & Flip
Id reverseText. New in 1.1.
- Modes: Characters (default), Words, Lines, Each Word, Upside Down and Mirror.
- Upside Down: flipping twice gives back the original.
- Transform: Reverse Text (
reverse-text), which reverses characters.
Slug Generator
Id slugify. New in 1.1.
- Style: URL Slug (default) or File Name. Each input line becomes one slug.
- Separator: Hyphen (default), Underscore or Dot; also None for URL slugs and Space for file names. Lowercase is on.
- Options menu: Transliterate Accents (é → e) (on), Maximum Length (no limit, or 30, 50, 60, 80 or 100 characters). For URL slugs also Remove Stop Words (off) and Spell Out & @ % + = (on).
- Other scripts: Cyrillic, Greek and CJK text is romanised.
- File names are safe on macOS, Windows and Linux.
- Transform: Slugify (
slugify).
Strip Characters
Id stripChars. New in 1.1.
- What to remove: HTML Tags, Punctuation, Symbols, Emoji, Accents (Diacritics), Digits, Non-ASCII, Control & Zero-Width, Line Breaks and Custom Characters you type. Only Punctuation is on by default.
- Tidy Spaces (on): collapses the spaces left behind and trims lines.
- Counts: each kind shows how many characters it removed.
- Transform: Strip Punctuation (
strip-punctuation).
ROT13 & Ciphers
Id ciphers. New in 1.1.
- Ciphers: ROT13 (default), ROT47, Caesar, Atbash and Vigenère.
- Caesar: Shift from −25 to 25 (default 3), with Encode or Decode. All Shifts lists every shift, to crack a Caesar cipher.
- Vigenère: Key
LEMONby default (letters A–Z; other characters are ignored), with Encode or Decode. - ROT13, ROT47 and Atbash undo themselves: applying them twice gives back the text.
- Not for secrets: these are for puzzles and spoilers, not security. Use AES Encrypt to protect text.
- Transform: ROT13 (
rot13).
ASCII Table
Id asciiTable. New in 1.1. It needs no input.
- ASCII: the 128 ASCII characters with decimal, hex, octal and binary codes, the HTML entity, the escape and the name. Double-click or press ↩ to copy a character; right-click for Copy Decimal, Copy Hex, Copy HTML Entity or Copy Escape. Copy Table copies the whole table.
- Unicode: browse 61 common Unicode blocks as a grid, or search by name ("snowman"), code point (
U+1F600) or character. Click a glyph to copy it. - Limit: the search covers those 61 blocks, not all of Unicode.
Related
- Bytepliers tools list
- Lines tools
- Inspect tools (String Inspector)