Configure styles.csv for Stable Diffusion

How the Stable Diffusion styles.csv file works, how to edit it safely as CSV, what it changes in your prompts, and when plain text is the better choice.

In Stable Diffusion web interfaces such as AUTOMATIC1111 and forks built on it, a file named styles.csv stores reusable prompt fragments called styles. Each row gives a style a name, a positive prompt and a negative prompt. When you select a style, the interface combines that saved text with whatever you typed. This review explains what the file actually changes, how to edit it without breaking it, and when keeping the same text in plain notes works better.

Is a styles file the right tool for your workflow?

A styles file suits you if you reuse the same descriptive phrases, quality tags or negative prompts across many generations. The main benefit is consistency: one saved row produces identical wording every time, and you can stack several styles without retyping. The decisive tradeoff is visibility. Depending on how the style is applied, the added text may not appear in your prompt box, so it is easy to forget what is influencing an image. The file is also a strict format, and one malformed line can affect how the rest of it loads.

Plain text is preferable when you are still experimenting with wording, when you want to see every token in the prompt field, when you share prompts with people who use a different interface, or when you need a record that does not depend on a particular program's CSV parser.

What the file contains

The file is ordinary comma-separated text with a header row. The interface reads the columns by header name, so the headers matter more than their order. The usual columns are name, prompt and negative_prompt.

name,prompt,negative_prompt
"Cinematic","cinematic still of {prompt}, shallow depth of field, film grain","cartoon, illustration, lowres"
"Watercolor","{prompt}, watercolor painting, soft edges, paper texture","photo, 3d render"
"Shop sign","{prompt}, storefront sign that reads ""OPEN""",""

This example is illustrative, not taken from any shipped file. It shows three rules that matter in practice: fields containing commas are wrapped in double quotes, a literal double quote inside a field is written as two double quotes, and an empty negative prompt is still represented by an empty quoted field.

What applying a style actually changes

A style changes the stored prompt text, not how anything is displayed. It is a text substitution or concatenation step that happens before the prompt reaches the model. In the AUTOMATIC1111 design, if the style's prompt contains the placeholder {prompt}, your typed prompt is inserted at that position. If the placeholder is absent, the style text is appended after your prompt, separated by a comma. Negative prompts follow the same logic with the negative field.

Using the first example row, typing "a lighthouse at dusk" with the Cinematic style selected yields "cinematic still of a lighthouse at dusk, shallow depth of field, film grain". With the Watercolor style, the result is "a lighthouse at dusk, watercolor painting, soft edges, paper texture". Placement matters because many prompt parsers weight earlier text and treat wording order as meaningful.

The word "style" here has nothing to do with fonts, Unicode letter styling, mirrored or reversed text, or CSS. Nothing in the file alters glyphs or reading direction. It only stores words that get merged into a prompt.

Selecting a style versus applying it to the prompt box

The interface generally offers two ways to use a saved style. Selecting it from the styles dropdown merges the text at generation time while your prompt box stays unchanged. A separate apply action copies the style text into the prompt fields so you can see and edit it, after which the style is typically deselected so it is not added twice. Exact button labels and behavior differ between versions and forks, so check the interface you run rather than relying on this description alone.

Editing the file safely

  • Close the web interface or avoid saving styles from it while editing the file by hand, since the program can rewrite the file.
  • Keep a backup copy before every substantial edit.
  • Save as UTF-8 so accented letters and other non-ASCII characters survive.
  • Keep the comma delimiter; the file is parsed as comma-separated, so tab-separated content will not load as separate columns.
  • Give every style a unique name to avoid confusion in the dropdown.
  • Restart or refresh the styles list in the interface after editing so changes are picked up.

Converting to TSV or a spreadsheet for editing

Prompts are full of commas, which makes raw CSV tedious to read. Converting to tab-separated values or opening the file in a spreadsheet can make columns easier to scan. The risk is in the round trip: the file must return to comma-separated form with correct quoting before the interface reads it again.

Editing approach | Main advantage | Main risk
Plain text editor | Exact control over every character and quote | Commas and doubled quotes are hard to read in long prompts
Spreadsheet application | Clear column view, easy sorting | May change encoding, strip quotes, or reformat values on save
CSV-to-TSV conversion and back | Tabs rarely appear in prompts, so columns are easier to see | Forgetting to convert back, or a converter that mishandles embedded quotes

Spreadsheet behavior varies by application, version and locale settings. Some locales use semicolons as the default list separator, which would produce a file the interface cannot split correctly. After any spreadsheet or converter round trip, open the result in a plain text editor and confirm the header row, commas and quoting look as expected.

Will styles stay usable after copying or sharing?

Because the file is plain text, copying a row or the whole file preserves the content exactly as long as encoding and line endings are kept. Problems come from the destinations. Chat apps and document editors may convert straight quotes to curly quotes, which breaks CSV quoting and also changes the characters the model receives. Pasting into a spreadsheet may split text at commas unexpectedly.

Sharing a styles file only helps someone using a compatible interface. Other tools may use a different file name, a different set of columns, or no style file at all. When sharing with a general audience, provide the merged prompt as plain text alongside the CSV so recipients can paste it anywhere.

Avoid decorative Unicode letters, such as mathematical bold or script characters, in style prompts. Text encoders split input into tokens, and these look-alike characters are different code points from ordinary letters, so they are unlikely to be read as the same words. They also hinder search inside the file and are announced poorly or unpredictably by screen readers. No specific test of a given model or screen reader was supplied for this article, so treat this as a general principle rather than a measured result.

For accessibility, a CSV opened in a text editor reads line by line, which can be hard to follow with long prompts. A spreadsheet or table view usually lets assistive technology announce column headers, which helps. Keeping style names short and descriptive makes the dropdown easier to navigate for everyone.

Gaps and uncertainty

No version-specific documentation, test results or measurements were provided for this review. File location, support for multiple style files, button labels and the exact merging rules can differ across releases and forks of Stable Diffusion interfaces. Confirm the behavior described here against the documentation or a quick test in the exact version you use, for example by creating a style with an obvious marker word and checking the final prompt recorded with the generated image.

Bottom line

A styles.csv file is a reliable way to reuse prompt wording once you have settled on it, provided you respect CSV quoting, keep the file in UTF-8 with comma delimiters, and remember that selected styles may add text you cannot see in the prompt box. Keep plain-text copies of important prompts for experimentation, sharing and long-term records.