> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-comfy-docs-comfyapi-search.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SaveSVGNode - ComfyUI Built-in Node Documentation

> Save SVG files on disk.

Save SVG files on disk. This node takes SVG data as input and writes it to the ComfyUI output directory, automatically handling file naming with counter suffixes. When workflow prompt information is available, it is embedded directly into the SVG file as a metadata element.

## Inputs

| Parameter         | Description                                                                                                                                                                             | Data Type | Required | Range |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ----- |
| `svg`             | The SVG data to be saved to disk                                                                                                                                                        | SVG       | Yes      | -     |
| `filename_prefix` | The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes. (default: "svg/ComfyUI") | STRING    | Yes      | -     |

## Outputs

| Output Name | Description                                                                                         | Data Type |
| ----------- | --------------------------------------------------------------------------------------------------- | --------- |
| `svg`       | The original SVG data, passed through after saving                                                  | SVG       |
| `ui`        | Saved file information including filename, subfolder, and type for display in the ComfyUI interface | DICT      |

**Note:** This node automatically embeds workflow metadata (prompt and extra PNG information) into the SVG file when available. The metadata is inserted as a CDATA section within the SVG's metadata element. Files are saved using the pattern `filename_prefix_00001_.svg`; when processing a batch, `%batch_num%` in the prefix is replaced with the index of the current batch item. The node is an output node, so it produces a saved result in the output folder even though the file itself is not displayed as an image preview.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/SaveSVGNode/en.md)

***

**Source fingerprint (SHA-256):** `365137d5dacab3142c25945fd97bce4b827d9d7d4dd839986c68f491a28fb805`
