AI image
Prompt to JSON
Turn a comma-separated prompt into JSON tokens without a model.
This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.
Empty. Paste text, drop a file, or load the example.
What this tool does
The converter cleans whitespace, splits on commas, and reads a simple weight suffix. It will not understand sentences that contain commas as grammar rather than as tag separators.
How to use it
- Paste a tag-style prompt.
- Copy the JSON.
- Edit weights in your generator, not as a hidden side effect here.
Supported input
- UTF-8 prompt text
Output
- JSON with tokenCount and tokens[]
Privacy
This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.
ConvertPass does not include your input in analytics, URLs, or error reports. Encoding: UTF-8. Limit: 2 MB (2.00 MB).
Limitations
- Natural-language prompts with narrative commas split incorrectly.
- Only simple weight syntax is recognised.
Example
portrait of Ada, (film grain:1.2), soft light
{
"tokenCount": 3,
"tokens": [
{ "text": "portrait of Ada", "weight": 1 },
{ "text": "film grain", "weight": 1.2 },
{ "text": "soft light", "weight": 1 }
]
}
Troubleshooting
- A sentence exploded into tiny tokens
- This tool is for tag-style prompts. Do not use it on paragraphs.
FAQ
Does this call an extraction model?
No.
Are weights standardised across generators?
No. Automatic1111, ComfyUI, and others disagree. The JSON just records what the text said.
Can I convert back?
Join tokens with commas in your editor. There is no dedicated reverse tool yet.
Will BREAK markers be kept?
Yes, as ordinary tokens if they are comma-separated.
Related tools
- Prompt cleaner
Tidy a prompt’s whitespace without sending it to a model.
- JSON formatter
Pretty-print JSON locally with clear parse errors and a one-click copy.
- AI-image metadata viewer
See whether an image still contains AI prompts — and say so only when it does.
Related guides
Related formats
Last reviewed 16 August 2026. Report a problem. Reports do not include your input.