HTTP/1.1 402 PAYMENT REQUIRED agent402.base.eth · BASE · SOLANA · POLYGON · ARBITRUM · MONAD · CELO · AVALANCHE · STELLAR · ALGORAND · ROBINHOOD · USDC · USDG
Agent402 / tools / Text processing

Text processing

Slugs, case conversion, diffs, regex, keywords, token estimates, edit distance, readability, PII redaction.

27 tools in this category - 27 free via proof-of-work. ← All tools

Slugify

FREE w/ compute · or $0.001 · POST /api/slugify

Turn any text into a URL-safe slug (lowercase, hyphenated, diacritics stripped).

Case convert

FREE w/ compute · or $0.001 · POST /api/case

Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, lower, UPPER.

Text statistics

FREE w/ compute · or $0.001 · POST /api/text-stats

Characters, words, sentences, paragraphs, average word length, reading time, and an LLM token estimate for any text.

Keyword extraction

FREE w/ compute · or $0.002 · POST /api/keywords

Top keywords and two-word phrases by frequency (stopwords removed). Cheap, deterministic signal for routing, tagging, an…

Text diff

FREE w/ compute · or $0.002 · POST /api/text-diff

Line-by-line diff of two texts (LCS). Returns unified-style ops and change counts. Up to 2000 lines per side.

Regex test

FREE w/ compute · or $0.001 · POST /api/regex

Run a regular expression against text. Returns up to 100 matches with index and capture groups. Pattern ≤ 200 chars, tex…

Lorem ipsum

FREE w/ compute · or $0.001 · GET /api/lorem

Placeholder text. ?paragraphs=1..20 or ?words=1..2000.

Count

FREE w/ compute · or $0.001 · POST /api/count

Count characters, words, lines, and (optionally) occurrences of a substring in text.

Truncate

FREE w/ compute · or $0.001 · POST /api/truncate

Truncate text to a maximum length, adding an ellipsis (or custom suffix). Optionally break on word boundaries.

Sort lines

FREE w/ compute · or $0.001 · POST /api/sort-lines

Sort the lines of a text. order: asc (default) | desc | numeric. unique:true removes duplicates; ci:true is case-insensi…

Dedupe lines

FREE w/ compute · or $0.001 · POST /api/dedupe-lines

Remove duplicate lines, preserving first-seen order. Returns the deduped text and how many were removed.

Edit distance

FREE w/ compute · or $0.001 · POST /api/levenshtein

Levenshtein edit distance between two strings, plus a 0-1 similarity ratio.

Redact PII

FREE w/ compute · or $0.002 · POST /api/redact

Mask emails, phone numbers, credit-card-like numbers, IPs, and SSNs in text. Returns the redacted text and counts by typ…

Extract entities

FREE w/ compute · or $0.002 · POST /api/extract-entities

Pull emails, URLs, IPv4s, @mentions, and #hashtags out of free text. Returns deduped lists.

Readability

FREE w/ compute · or $0.002 · POST /api/readability

Flesch Reading Ease score and Flesch–Kincaid grade level for English text, plus word/sentence/syllable counts.

Token count

FREE w/ compute · or $0.001 · POST /api/token-count

Count exact LLM tokens for a string using the real OpenAI BPE (o200k_base for gpt-4o/o-series, cl100k_base for gpt-4/gpt…

Text chunk (RAG)

FREE w/ compute · or $0.001 · POST /api/text-chunk

Split text into overlapping chunks for RAG ingestion - by characters (default) or by exact LLM tokens. Returns the chunk…

Readability score

FREE w/ compute · or $0.001 · POST /api/readability-score

Compute Flesch-Kincaid Grade Level, Flesch Reading Ease, Gunning Fog Index, and Automated Readability Index from text. R…

Word frequency

FREE w/ compute · or $0.001 · POST /api/word-frequency

Top N words and bigrams from text. Lowercase, strip punctuation, filter common English stop words. Returns sorted word a…

Text similarity

FREE w/ compute · or $0.001 · POST /api/text-similarity

Compute Jaccard similarity, overlap coefficient, and Sorensen-Dice coefficient between two texts at the word level. Retu…

Lorem ipsum generator

FREE w/ compute · or $0.001 · GET /api/lorem-ipsum

Generate placeholder lorem ipsum text. Supports paragraphs or sentences mode with configurable counts. Uses a fixed voca…

Slug generator

FREE w/ compute · or $0.001 · GET /api/slug-generate

Generate a URL-safe slug from any string. Handles accented characters (normalize NFD), replaces non-alphanumeric with hy…

Jaccard similarity

FREE w/ compute · or $0.001 · POST /api/jaccard-similarity

Compute the Jaccard similarity coefficient between two strings using character bigrams or word tokens. Returns the ratio…

Case convert

FREE w/ compute · or $0.001 · POST /api/case-convert

Convert text between naming conventions: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and Title Case. A…

String similarity

FREE w/ compute · or $0.001 · POST /api/string-similarity

Compute multiple similarity metrics between two strings at once: Dice coefficient, Jaccard index, overlap coefficient (a…

Character frequency

FREE w/ compute · or $0.001 · POST /api/char-frequency

Analyze the character frequency distribution of a string. Returns counts by category (letters, digits, spaces, punctuati…

Word wrap

FREE w/ compute · or $0.001 · POST /api/word-wrap

Wrap text to a specified column width, breaking at word boundaries. Words longer than the width are forcibly broken. An …