LLM Token Counter
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 than in the middle of one.
The Chat Transcript Splitter splits a long transcript into chunks under a token budget, breaking on speaker turns rather than in the middle of one. 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.
| Breaks on | Speaker turns, falling back to blank lines |
|---|---|
| Never breaks | In the middle of a turn |
| Overlap | Repeats the tail of each chunk at the head of the next |
| Oversized turns | Reported rather than silently truncated |
Detects turns from a "Name:" pattern at the start of a line, falling back to blank lines. A transcript with no consistent speaker markers is split on paragraphs, which is looser and worth checking.
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…
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.