Paste tags

Formatted

A formatter that turns a list of tags copied from Danbooru or gelbooru into something you can paste straight into a Stable Diffusion prompt. It bulk-converts underscore-style tags like `long_hair` into spaced `long hair` (or back the other way), and escapes parentheses for Automatic1111 / WebUI so that `fate_(series)` becomes `fate \(series\)` (or unescapes them again). On top of that it removes the duplicate tags that pile up from copy-pasting, sorts A→Z, and lets you pick the separator (comma + space, comma only, or new line). The output updates in real time as you type and shows the tag count and how many duplicates were removed, so formatting is just paste-then-copy. It's pure string processing with no external tag dictionary or API, so your work-in-progress prompt is never sent anywhere — your tags are the blueprint of your work, so this tool makes no network calls and does all formatting locally in your browser.

How to use

  1. Paste the tags you copied from Danbooru (or anywhere) into the input box on the left — mixed commas and line breaks are fine.
  2. Pick the word spacing (underscores ⇄ spaces), parenthesis escaping/unescaping, order, and separator, and turn on "Remove duplicates" if you want.
  3. Hit "Copy" on the formatted output and paste it straight into your Stable Diffusion prompt.

FAQ

Are the tags sent to a server?

No. All formatting is plain string processing in your browser, with no external tag dictionary or API. The tags you enter are never uploaded, stored, or sent anywhere — they are processed only on your device.

Why convert between underscores and spaces?

Booru sites like Danbooru write tags with underscores (`long_hair`), but Stable Diffusion prompts usually use spaces (`long hair`). This tool normalizes that mismatch in one click.

What is parenthesis escaping (\( \)) for?

In Automatic1111 / WebUI, parentheses `()` are emphasis syntax. A tag like `fate_(series)` that contains literal parentheses would be emphasized unintentionally, so escaping turns it into `fate \(series\)` — parentheses as literal characters. "Unescape" reverses it.

How are duplicate tags detected?

After splitting on the separator, tags whose text matches once leading/trailing whitespace is trimmed are treated as duplicates, and only the first is kept. The number removed is shown below the output.

Are emphasis weights (like :1.2) preserved?

This tool focuses on formatting the notation — spacing, parentheses, order, and duplicates. If you want to rewrite the weight notation itself, pair it with the prompt-weight tool.

Can I change the separator?

Yes. Choose comma + space (the prompt standard), comma only, or new line. New line is handy when you want to review or edit the tags one per line.