Skip to content
ConvertPass home

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.

Loading the workbench…

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

  1. Paste a tag-style prompt.
  2. Copy the JSON.
  3. 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

Input
portrait of Ada, (film grain:1.2), soft light
Output
{
  "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

Related guides

Related formats

Last reviewed 16 August 2026. Report a problem. Reports do not include your input.