TokenPad
Prompts

Prompt Delimiter and Tag Checker

Find the unclosed tag before the model reads your instructions as data.

Your input

Paste the assembled prompt, not the template.

88 characters5 lines0 tokensor drop a file

Delimiter CheckerExact
0Problems
Problems0unclosed or mismatched
Distinct tags0found in the prompt
Risk if brokenSilentinstructions read as data
Token cost of this result
Output tokens0
As input$0.00
× 100K requests$0.00

Everything on this page runs in your browser. Nothing you paste is transmitted, because there is no server here to transmit it to.

Result
 

How an unclosed tag fails

Badly. If <context> is never closed, everything after it — including your instructions and your output format — sits inside the context block as far as the model is concerned. It reads your commands as part of the document it was asked to analyse.

The symptom is a model that ignores instructions for no apparent reason, on a prompt that looks fine. It is one of the harder prompt bugs to spot by reading, and one of the easiest to detect mechanically.

Where it comes from

Assembled prompts. When sections are concatenated conditionally, a branch that adds an opening tag without its closing partner is easy to write and invisible in review.

Also from interpolated content: a retrieved document that itself contains angle-bracket text can look like a tag and unbalance the structure. Check the assembled prompt, not the template.

The adversarial case

A closing tag inside untrusted content is a documented injection technique. Text that includes </context> followed by instructions is attempting to escape its container and be read as a command.

Unexpected closing tags in a prompt built from user-supplied content are worth treating as suspicious rather than as a formatting mistake.

Frequently asked questions

Does the model actually care about mismatched tags?
It has no parser, so nothing errors. It infers structure from what it reads — which is exactly why a broken boundary is dangerous: the failure is silent and looks like the model ignoring you.
Should I escape angle brackets in user content?
If your delimiting depends on them, yes. Escaping or stripping tag-like sequences from untrusted content before insertion removes the whole class of problem.

More prompts tools