Skip to content
,

ComfyUI Prompt Weighting: (word:1.2) Syntax, Embeddings and A1111 Differences

7–10 minutes
Woman at a photo editing desk holding a tablet with a WORD:1.2 card, hook prompt weights stop burned images

Typed (masterpiece:1.4) into ComfyUI and got a fried, oversaturated mess? Or used [blurry] to tone something down and nothing changed?

ComfyUI reads prompt weights differently from Automatic1111 and Forge. The syntax looks the same, but the numbers hit harder and some A1111 tricks don’t exist at all.

This guide explains exactly how prompt weighting works in ComfyUI: the (word:1.2) syntax, how nesting is calculated, how to lower a weight, escaping brackets, embeddings, clip skip, the keyboard shortcut, how it differs from A1111, and how to get A1111-style weights back if you want them.

TL;DR

  • Syntax: (word) = 1.1, ((word)) = 1.21, (word:1.3) = exactly 1.3, (word:0.7) = weaker.
  • No square brackets: [word] does nothing special in ComfyUI. Use a weight below 1 instead.
  • Weights hit harder than in A1111 because ComfyUI doesn’t normalize them. Stay around 0.8-1.3.
  • Literal brackets: write \( and \).
  • Embeddings: embedding:name, weighted as (embedding:name:1.2).
  • A1111 behaviour: the Advanced CLIP Text Encode custom node offers A1111 weight interpretation and normalization.

New to ComfyUI? Start with my ComfyUI guide, which covers install, nodes and workflows in one place.

Weight Syntax Cheat Sheet

Weights go inside the CLIP Text Encode prompt box. A weight of 1.0 is normal. Above 1 makes a word count more, below 1 makes it count less.

You type Weight Notes
red dress 1.0 Normal
(red dress) 1.1 Each pair of parentheses multiplies by 1.1
((red dress)) 1.21 1.1 x 1.1
(((red dress))) 1.331 Gets strong fast
(red dress:1.3) 1.3 Exact weight
(red dress:0.7) 0.7 How you lower a weight in ComfyUI
[red dress] 1.0 No effect. Brackets are treated as plain text
\(red dress\) 1.0 Literal parentheses in the prompt
(embedding:easynegative:0.8) 0.8 Weighted embedding

Weights apply to a phrase, not just one word. (golden hour lighting:1.2) boosts all three words together.

How Nesting Is Calculated

ComfyUI’s parser (in comfy/sd1_clip.py) handles parentheses with two simple rules:

  1. Every pair of parentheses multiplies the current weight by 1.1.
  2. An explicit number after a colon replaces the weight. It doesn’t multiply.

So the results can surprise you:

Prompt Final weight Why
((cat:1.5)) 1.5 The outer pair gives 1.1, then :1.5 replaces it
(cat (hat:1.4)) cat 1.1, hat 1.4 The inner number replaces, it doesn’t stack
((cat) hat:1.2) cat 1.32, hat 1.2 Outer weight 1.2, inner pair multiplies it by 1.1

The easy habit: use one pair of parentheses with an explicit number, and don’t nest. It’s clearer to read and you always know the weight.

How ComfyUI Applies a Weight

This is the part that explains why ComfyUI weights feel stronger.

When a prompt has weights, ComfyUI also encodes an empty prompt. For each weighted token it moves the embedding away from the empty prompt’s embedding by the weight:

weighted = (token - empty) x weight + empty

A weight of 1.3 pushes the token 30% further from “nothing”. A weight of 0.7 pulls it 30% closer to “nothing”, which is why low weights fade a concept instead of removing it.

ComfyUI does this per token and doesn’t rescale the rest of the prompt afterwards. Automatic1111 multiplies the token embeddings and then normalizes the whole prompt back to its original average, which softens big weights. Same number, different strength.

ComfyUI vs A1111: What’s Different

Feature Automatic1111 / Forge ComfyUI
(word:1.2) Yes, normalized Yes, not normalized (stronger)
[word] to lower weight Yes (divides by 1.1) No. Use (word:0.9)
Prompt editing [cat:dog:0.5] Yes No. Use ConditioningSetTimestepRange
Alternating [cat|dog] Yes No
BREAK Yes No. Use Conditioning (Concat)
LoRA in prompt <lora:name:0.8> Yes No. Use a Load LoRA node
Embeddings File name in the prompt embedding:name
Clip skip Setting (2 = skip one layer) CLIP Set Last Layer at -2

Converting an A1111 prompt

  • Scale big weights down. (masterpiece:1.4) in A1111 is often closer to (masterpiece:1.15) in ComfyUI. Test on a fixed seed.
  • Turn [word] into (word:0.9) and [[word]] into (word:0.83).
  • Move <lora:...> tags to Load LoRA nodes. See how to use LoRAs in ComfyUI.
  • Replace BREAK by encoding each chunk in its own CLIP Text Encode and joining them with Conditioning (Concat).
  • Replace [cat:dog:0.5] with two prompts through ConditioningSetTimestepRange (0-0.5 and 0.5-1), merged with Conditioning (Combine).

If your prompts use random choices like {red|blue|green}, those come from wildcard nodes, not weighting. My ComfyUI wildcards guide covers them.

Embeddings (Textual Inversion)

Embeddings are small files (.pt or .safetensors) that add a learned word, often used in negative prompts.

  1. Put the file in ComfyUI/models/embeddings/.
  2. In the prompt, type embedding: followed by the file name, with or without the extension: embedding:easynegative.
  3. Weight it like any word: (embedding:easynegative:0.8).

The embedding: keyword must start the prompt or follow a space. If ComfyUI can’t find the file, the console prints a warning that the embedding doesn’t exist and ignores it.

Embeddings only work with the model family they were trained for. An SD 1.5 embedding does nothing useful on SDXL. If you keep embeddings in another folder, point ComfyUI to it with extra_model_paths.yaml.

The Weight Keyboard Shortcut

Select a word or phrase in a prompt box and press Ctrl+Up or Ctrl+Down (Cmd on Mac). ComfyUI wraps it in parentheses and raises or lowers the weight in small steps. If nothing is selected, it uses the word under the cursor.

The step size can be changed in the settings (search “attention” in the settings dialog). My ComfyUI keyboard shortcuts list has the rest.

Clip Skip with CLIP Set Last Layer

Many anime SD 1.5 models were trained with “clip skip 2”. In ComfyUI, add CLIP Set Last Layer between the checkpoint’s CLIP output and your text encodes.

  • stop_at_clip_layer -1 (default) = normal, A1111 clip skip 1.
  • stop_at_clip_layer -2 = A1111 clip skip 2.

Clip skip changes how every word is read, so weights can feel different after you change it. Set clip skip first, then tune weights.

A1111-Style Weights with Advanced CLIP Text Encode

If you’re reusing a lot of A1111 prompts, the ComfyUI_ADV_CLIP_emb pack by BlenderNeko adds CLIP Text Encode (Advanced) and an SDXL version. Install it from ComfyUI Manager and use it in place of CLIP Text Encode.

Input Options What it does
token_normalization none, mean, length, length+mean Rescales weights. mean is close to A1111’s normalization
weight_interpretation comfy, A1111, compel, comfy++, down_weight How a weight is applied. A1111 copies A1111’s method

For A1111-like results, set weight_interpretation to A1111 and token_normalization to mean. The SDXL node also has a balance slider between SDXL’s two text encoders.

The pack hasn’t changed much in a while, so check that it still loads on your ComfyUI version. If you see an import error, my import failed fix walks through it.

Weights on SDXL, Flux and Newer Models

Model family Text encoder How weights behave
SD 1.5 CLIP-L Strong effect. Stay at 0.8-1.3
SDXL, Pony, Illustrious CLIP-L + CLIP-G Strong effect. Pony and Illustrious tags respond well to 1.1-1.2
Flux-style models CLIP-L + T5 Weaker and less predictable. Describe what you want in plain sentences instead
Newer LLM-encoder models (Qwen-Image, Z-Image and similar) A language model Weights were designed for CLIP, so clear wording and word order matter more than numbers

For models with T5 or LLM text encoders, a sentence like “the dress is bright red and is the main focus” usually works better than (red dress:1.4).

Troubleshooting

Images look burned or oversaturated

Weights are too high, often from an A1111 prompt. Drop everything above 1.3, remove stacked parentheses, and test again on the same seed.

The weight seems to do nothing

Check you used parentheses, not square brackets. On Flux or LLM-encoder models, rewrite the idea as a sentence instead.

My prompt has a literal “(” in a name and breaks

Escape it: photo \(1990s\). Unescaped parentheses are read as weights.

“embedding does not exist” in the console

The file isn’t in models/embeddings/, the name is misspelled, or there’s no space before embedding:. Refresh with R after adding files.

A word with weight 0 still appears

A weight of 0 moves the word to the empty-prompt embedding, but context from nearby words can still bring the idea in. Remove the word, or put it in the negative prompt.

FAQ

What does (word:1.2) mean in ComfyUI?

It gives that word or phrase 1.2 times its normal influence on the image. 1.0 is normal.

How do I decrease a weight in ComfyUI?

Use a number below 1, like (word:0.7). Square brackets don’t lower weights in ComfyUI.

Why do my A1111 prompts look worse in ComfyUI?

ComfyUI doesn’t normalize weights, so high values are stronger. Lower them, or use Advanced CLIP Text Encode with A1111 interpretation.

What’s the maximum useful weight?

About 1.3-1.5 on SD 1.5 and SDXL. Beyond that you usually get artifacts rather than more of the concept.

Do weights work in the negative prompt?

Yes, the same way. (blurry:1.2) in the negative pushes harder away from blur.

Does ComfyUI support BREAK?

Not in the prompt text. Encode each part separately and join them with Conditioning (Concat).

How do I weight a LoRA in ComfyUI?

With the strength sliders on the Load LoRA node, not in the prompt.

How do I use clip skip in ComfyUI?

Add CLIP Set Last Layer after the checkpoint and set it to -2 for A1111’s clip skip 2.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman at a photo editing desk holding a tablet with a WORD:1.2 card, hook prompt weights stop burned images