Negative Prompt Cleanup
Switch negative-prompt chips on and watch typical AI artifacts (blur, watermark, extra object, noise) disappear.
AI prompt
A ceramic coffee cup on a wooden table beside a window, soft morning light, sharp focus on the cup, clean surface, matte glaze, warm tones, shallow depth of field, photographic realism. Negative prompt: blurry, out of focus, watermark, text, logo, extra objects on the table, duplicate cup, grain, heavy noise, oversharpened, distorted handle. Write the negative terms as plain nouns and adjectives, separated by commas, and keep to the artifacts that actually appear. Negative: vague words like "bad" or "ugly", very long lists, contradicting the positive prompt.About this pattern
Definition
A negative prompt lists what the image should not contain. Naming specific artifacts such as blur, watermark text or extra objects gives the model clear things to avoid.
When to use it
- Be concrete: "watermark, text, extra fingers" works better than "bad quality".
- Keep the list short and relevant to the scene; very long negative lists can flatten the result.
- Pair every negative with a positive description of what you do want.
What the controls do
- Four chips (Blur, Watermark, Extra object, Noise) toggle; the picture and the composed prompt update together.
Motion & timing
- Artifacts fade out over 250ms when their chip is switched on.
- Reduced motion: they disappear instantly.
Tips & variations
- Some tools use a separate negative field; in others write "Avoid:" at the end of the prompt.
- Tailor the list per image type: portraits need hands and eyes, products need reflections and text.
Code of this live preview
<div class="bx"><div class="im" id="im"><div class="tb"></div><div class="cup"></div><div class="x ex">?</div><div class="x wm">SAMPLE</div><div class="x nz"></div></div>
<div class="pre" id="pre" role="group" aria-label="Negative terms"><button data-k="blur">Blur</button><button data-k="wm">Watermark</button><button data-k="ex">Extra object</button><button data-k="nz">Noise</button></div><p class="out" id="out" aria-live="polite"></p></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
.bx{width:min(300px,100%);display:grid;gap:8px}
.im{position:relative;height:140px;border-radius:12px;overflow:hidden;background:linear-gradient(#e9dfcc,#d9c9aa);filter:blur(var(--bl,3px))}
.tb{position:absolute;left:0;right:0;bottom:0;height:46px;background:#a07850}
.cup{position:absolute;left:50%;bottom:30px;width:44px;height:40px;margin-left:-22px;background:#f4f1ea;border-radius:4px 4px 16px 16px}
.cup::after{content:"";position:absolute;right:-12px;top:8px;width:14px;height:18px;border:4px solid #f4f1ea;border-left:0;border-radius:0 12px 12px 0}
.x{transition:opacity .25s}
.ex{position:absolute;left:30px;bottom:34px;width:34px;height:34px;border-radius:50%;background:#c4522f;display:grid;place-items:center;color:#fff;font-weight:700}
.wm{position:absolute;right:8px;bottom:6px;font-size:12px;font-weight:800;color:rgba(255,255,255,.7);letter-spacing:.1em;transform:rotate(-6deg)}
.nz{position:absolute;inset:0;background-image:var(--noise,none);opacity:.55;mix-blend-mode:overlay}
.im.k-wm .wm,.im.k-ex .ex,.im.k-nz .nz{opacity:0}
.pre{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.pre button{height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:10.5px;cursor:pointer;padding:0}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.out{font-size:12px;color:var(--muted);line-height:1.45}.out b{color:var(--text)}
@media (prefers-reduced-motion:reduce){.x,.im{transition:none}}const im=document.getElementById('im'),out=document.getElementById('out'),bs=[...document.querySelectorAll('#pre button')];
const cv=document.createElement('canvas');cv.width=cv.height=70;const x=cv.getContext('2d'),d=x.createImageData(70,70);for(let i=0;i<d.data.length;i+=4){const v=Math.random()*255;d.data[i]=d.data[i+1]=d.data[i+2]=v;d.data[i+3]=255;}x.putImageData(d,0,0);im.style.setProperty('--noise','url('+cv.toDataURL()+')');
const W={blur:'blurry, out of focus',wm:'watermark, text, logo',ex:'extra objects, duplicate cup',nz:'grain, heavy noise'};
function up(){const on=bs.filter(b=>b.getAttribute('aria-pressed')==='true').map(b=>b.dataset.k);im.style.setProperty('--bl',on.includes('blur')?'0px':'3px');['wm','ex','nz'].forEach(k=>im.classList.toggle('k-'+k,on.includes(k)));
out.innerHTML='<b>Negative prompt</b>: '+(on.length?on.map(k=>W[k]).join(', '):'(empty)');}
bs.forEach(b=>{b.setAttribute('aria-pressed','false');b.addEventListener('click',()=>{b.setAttribute('aria-pressed',String(b.getAttribute('aria-pressed')!=='true'));up();});});up();One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Negative Prompt Cleanup — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.bx{width:min(300px,100%);display:grid;gap:8px}
.im{position:relative;height:140px;border-radius:12px;overflow:hidden;background:linear-gradient(#e9dfcc,#d9c9aa);filter:blur(var(--bl,3px))}
.tb{position:absolute;left:0;right:0;bottom:0;height:46px;background:#a07850}
.cup{position:absolute;left:50%;bottom:30px;width:44px;height:40px;margin-left:-22px;background:#f4f1ea;border-radius:4px 4px 16px 16px}
.cup::after{content:"";position:absolute;right:-12px;top:8px;width:14px;height:18px;border:4px solid #f4f1ea;border-left:0;border-radius:0 12px 12px 0}
.x{transition:opacity .25s}
.ex{position:absolute;left:30px;bottom:34px;width:34px;height:34px;border-radius:50%;background:#c4522f;display:grid;place-items:center;color:#fff;font-weight:700}
.wm{position:absolute;right:8px;bottom:6px;font-size:12px;font-weight:800;color:rgba(255,255,255,.7);letter-spacing:.1em;transform:rotate(-6deg)}
.nz{position:absolute;inset:0;background-image:var(--noise,none);opacity:.55;mix-blend-mode:overlay}
.im.k-wm .wm,.im.k-ex .ex,.im.k-nz .nz{opacity:0}
.pre{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.pre button{height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:10.5px;cursor:pointer;padding:0}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.out{font-size:12px;color:var(--muted);line-height:1.45}.out b{color:var(--text)}
@media (prefers-reduced-motion:reduce){.x,.im{transition:none}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="im" id="im"><div class="tb"></div><div class="cup"></div><div class="x ex">?</div><div class="x wm">SAMPLE</div><div class="x nz"></div></div>
<div class="pre" id="pre" role="group" aria-label="Negative terms"><button data-k="blur">Blur</button><button data-k="wm">Watermark</button><button data-k="ex">Extra object</button><button data-k="nz">Noise</button></div><p class="out" id="out" aria-live="polite"></p></div>
</div>
<script>
const im=document.getElementById('im'),out=document.getElementById('out'),bs=[...document.querySelectorAll('#pre button')];
const cv=document.createElement('canvas');cv.width=cv.height=70;const x=cv.getContext('2d'),d=x.createImageData(70,70);for(let i=0;i<d.data.length;i+=4){const v=Math.random()*255;d.data[i]=d.data[i+1]=d.data[i+2]=v;d.data[i+3]=255;}x.putImageData(d,0,0);im.style.setProperty('--noise','url('+cv.toDataURL()+')');
const W={blur:'blurry, out of focus',wm:'watermark, text, logo',ex:'extra objects, duplicate cup',nz:'grain, heavy noise'};
function up(){const on=bs.filter(b=>b.getAttribute('aria-pressed')==='true').map(b=>b.dataset.k);im.style.setProperty('--bl',on.includes('blur')?'0px':'3px');['wm','ex','nz'].forEach(k=>im.classList.toggle('k-'+k,on.includes(k)));
out.innerHTML='<b>Negative prompt</b>: '+(on.length?on.map(k=>W[k]).join(', '):'(empty)');}
bs.forEach(b=>{b.setAttribute('aria-pressed','false');b.addEventListener('click',()=>{b.setAttribute('aria-pressed',String(b.getAttribute('aria-pressed')!=='true'));up();});});up();
</script>
</body></html>