LLM Token Counter
Estimates how many tokens a piece of text costs, broken down by script, and shows what…
Checks a system prompt for the patterns that reliably cause trouble, and shows what it costs on every call.
The System Prompt Linter checks a system prompt for the patterns that reliably cause trouble, and shows what it costs on every call. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.
| Biggest fault | Not stating the output format |
|---|---|
| Second | Everything marked important, so nothing is |
| Cost | Paid on every call — cache it |
| Positive instructions | Followed more reliably than negative ones |
Pattern checks on text. It cannot detect contradictions between instructions, judge whether the instructions suit the task, or predict how a particular model will follow them.
Estimates how many tokens a piece of text costs, broken down by script, and shows what…
Splits a long transcript into chunks under a token budget, breaking on speaker turns rather…
Formats, indents and validates JSON with precise error positions, key sorting and a…
Checks whether JSON is valid and reports the exact line, column and reason for the first error…
Strips all whitespace from JSON to produce the smallest valid output, showing the bytes saved.
Converts a JSON array of objects into CSV, flattening nested keys and handling missing fields…
Turns CSV or TSV into a JSON array of objects, with type detection for numbers and booleans.
Converts JSON into well-formed XML with a configurable root element and array item naming.
Parses XML and converts it to JSON, preserving attributes and handling repeated elements as…
Converts JSON to clean YAML with correct indentation, quoting and multi-line string handling.