ComfyUI Node

decode

Converts a bytes-like string representation back to a text string. This node takes a string representation of bytes (like those produced by the StringEncode node) and converts it back to a regular text string using the specified encoding. Useful for processing encoded data received from files or network sources.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
decode
    • STRING
    bytes_stringb''
    encoding
    errors
    CategoryBasic/STRING

    Inputs (3)

    NameTypeDefaultDescription
    bytes_stringSTRINGb''
    encodingCOMBO6 options: utf-8, ascii, latin-1, utf-16, utf-32, cp1252
    errorsCOMBO4 options: strict, ignore, replace, backslashreplace

    Outputs (1)

    NameTypeDescription
    STRINGSTRING