Case, Slug & Word Counter
Data, Regex & TextLive Regex tester with presets, side-by-side Diff checker, case/slug tools, and GFM Markdown builder.
100% client-side — files and inputs never leave your browser.
About this tool and how it works
Case conversion, slugs, and text statistics
Paste any phrase and get every common naming convention at once, plus counts of characters, UTF-8 bytes, words, and lines. A second mode removes duplicate lines from lists.
Naming conventions and where they are used
camelCase— JavaScript/TypeScript variables and JSON keys.PascalCase— classes, React components, TypeScript types.snake_case— Python, Ruby, SQL columns.kebab-case— CSS classes, file names, CLI flags.CONSTANT_CASE— environment variables and constants.- slug — URL paths: lowercase, hyphen-separated, accents removed.
Example: Relatório de Vendas 2026 becomes relatorioDeVendas2026, relatorio_de_vendas_2026, and the slug relatorio-de-vendas-2026.
Characters vs bytes
Many limits are measured in bytes, not characters: database VARCHAR columns in some engines, SMS segments, HTTP header sizes, and API payload caps. An emoji is 1–2 JavaScript characters but 4 UTF-8 bytes; an accented letter is 1 character but 2 bytes. Check the byte count before you hit a truncation bug.
Removing duplicate lines
Paste a list of emails, IDs, or log lines and keep the first occurrence of each, preserving the original order. Enable trimming to treat "abc " and "abc" as the same line. The tool reports how many duplicates were removed. Combined with the case converter, it is a quick way to clean up column names or tag lists copied from a spreadsheet before importing them into code.
Frequently asked questions
How are accents handled in slugs?
Accented letters are converted to their base letter (é → e, ç → c) and punctuation is replaced with hyphens, producing URL-safe ASCII slugs.
How does the word counter define a word?
Any run of non-whitespace characters separated by spaces, tabs, or line breaks counts as one word, which matches most editors.
Does deduplication change the order of lines?
No. The first occurrence of each line is kept in its original position; later repeats are removed.
Other tools
Beautify, minify, validate with line errors, sort keys, and inspect JSONPath.
Convert bidirectionally between JSON, YAML, CSV, and TOML in your browser.
Generate TypeScript interfaces and Zod schemas from any JSON payload.
Beautify or minify SQL queries (Postgres/MySQL), XML, and HTML markup.
Live regex matcher, capture groups, replace preview, and quick presets.
Compare text, JSON, or code side-by-side or in unified diff view.
Live GFM preview, HTML export, and Markdown table generator from CSV/TSV.
Create direct wa.me links with pre-filled messages and downloadable PNG QR codes.
Merge, split, compress, rotate pages, and convert between PDF and images 100% locally.