9 free code & text utilities — regex tester & explainer, text diff checker, markdown preview, case converter, AI token counter (GPT-4 / Claude / Gemini), string escape, character counter. Browser-only.
9 Code & Text Tools
Code & text tools sit between writing and shipping — every diff before commit, every regex before prod, every markdown render before publish runs through one of these utilities. The 9 tools in this category cover the operations that show up dozens of times per day in real engineering workflows: regex pattern testing with live capture-group display, two-document diff with line-level granularity, AI-token counting for prompt budgeting (GPT-4o, Claude Sonnet, Gemini), and the escape/unescape variants needed when shuttling strings between JSON, HTML, JavaScript, and shell. All run client-side via the browser's native regex engine, native JSON.stringify, and tokenizer libraries shipped as static JS — no input is ever uploaded.
A regex tester takes a pattern and a sample string and shows whether the pattern matches, what each capture group caught, and the full vs first match. Use it when you have a pattern and want to confirm it does what you intended. A regex explainer takes a pattern alone and translates it into plain English ("matches one or more digits, then a hyphen, then 3-4 word characters"). Use it when reading someone else's regex or auditing a complex production pattern. Both tools live in this cluster — Regex Tester for the former, Regex Explainer for the latter.
The AI Token Counter ships the same tokenizer libraries (cl100k_base for GPT-3.5/4, o200k_base for GPT-4o, Anthropic's tokenizer for Claude, Gemini SentencePiece) compiled to WebAssembly. Tokenization runs locally — your prompt text never reaches OpenAI, Anthropic, or Google servers. Verify with DevTools → Network tab: zero outgoing requests during count. This matters because production prompts often contain customer data or unreleased features; sending them to OpenAI's token counter API is the same data exposure as sending them to the model itself.
| Need | Tool |
|---|---|
| Test a regex pattern with live match preview | Regex Tester |
| Translate a regex into plain English | Regex Explainer |
| Compare two text/code blocks line by line | Text Diff Checker |
| Preview Markdown as HTML | Markdown Preview |
| Convert camelCase ↔ snake_case ↔ kebab-case | Case Converter |
| Count tokens for GPT-4 / Claude / Gemini prompts | AI Token Counter |
| Escape strings for JSON / HTML / JavaScript | String Escape / Unescape |
| Count characters / words / SMS segments | Character & Word Counter |
| Color contrast check (accessibility) | WCAG Contrast Checker |
Code and text tools cover the day-to-day grind: testing a regex you'll never remember, comparing two configs, escaping strings for JSON or HTML, counting tokens before sending a prompt to GPT or Claude. The right choice depends on the format you're wrestling with and whether you need deep analysis (regex explainer) or a quick transform (case converter).
.* grabs everything to the end of line. Use .*? (lazy) or a more specific character class.. matches any character — use \. when you mean a literal period (e.g. matching example\.com)." as \" then re-encoding for HTML produces double-escaped junk. Encode once, in the final destination format.Frequently Asked Questions
Other Categories