ComfyUI Node

Artist Tag Formatter

One artist name, every format's prefix — the tiny utility you didn't know you wanted

By zisonMyu·Created 4 months ago·Updated 3 months ago· 2
Artist Tag Formatter
    • formatted_artists
    artist_names
    target_format
    escape_parenthesestrue

    Of the three artist-focused nodes in this pack, this is the smallest - and that's fine, because it has one job and it does it cleanly. ArtistTagFormatter takes artist names and adds the right prefix for whatever format you're targeting: nothing for plain SD, @ for SD(anima), artist: for NAI3/NAI4, and a <style> wrapper for NewBie. Paste wlop in, pick a format, get the correctly-dialected tag out.

    It's basically the prefix half of the pack's ArtistNameConverter, minus the source detection and minus the "convert between styles" logic. Where the name converter is for wholesale rebadging of an existing list, this one is for generating a formatted tag - say you're assembling a prompt programmatically, or you keep a list of artist names in their raw form and want them dressed for whichever model you're currently running. It's the kind of utility that feels trivial until you've written the regex yourself one too many times.

    How it works

    Paste names into artist_names (multiline or comma-separated), pick target_format from the five dialects (SD, SD(anima), NAI3, NAI4, NewBie), and it returns a single formatted_artists string. It strips any @ or artist: prefix that's already there first, so feeding it mixed styles still gives you a clean uniform output. escape_parentheses defaults on, which escapes literal parens in handles like ask(askzy) so an SD-family text encoder doesn't read them as emphasis.

    Two small behaviors are worth knowing. NAI3 and NAI4 both use the artist: prefix, so they produce identical output here. And NewBie doesn't prefix at all - it wraps the joined list in <style>...</style>, because that's where NewBie's XML structure expects artists to live, matching what the pack's converter generates on the way in.

    Honest scope

    It can't identify plain artist names as artists, same as its siblings - wlop is just a word to it unless there's a prefix or you're supplying it yourself. It also doesn't convert between styles; if you have @wlop and want artist:wlop, that's the ArtistNameConverter's job. Reach for this one when you're producing a tag in a known format, not when you're migrating an existing prompt.

    Install

    No surprises, same pack, same drill: search "ComfyUI-Prompt-Format-Converter" in ComfyUI Manager, or cd ComfyUI/custom_nodes && git clone https://github.com/zisonMyu/ComfyUI-Prompt-Format-Converter, then restart. Dependency-free and offline - nothing to download, and the pack's only optional file (the Danbooru artist CSV) isn't even used by this node. It's as close to zero-risk as a custom node gets.

    CategoryPrompt Tools

    Inputs (3)

    NameTypeDefaultDescription
    artist_namesSTRING
    target_formatCOMBO5 options: SD, SD(anima), NAI3, NAI4, NewBie
    escape_parenthesesBOOLEANtrue

    Outputs (1)

    NameTypeDescription
    formatted_artistsSTRING