# Sfsym – Export Apple SF Symbols as Vector SVG/PDF/PNG

I found myself reaching for SF Symbols' 'Copy Image As…' quite often during agentic design sessions, so I made a command-line tool that the agent can use by itself. It exports Apple SF Symbols as SVG, PDF, or PNG. The vector paths come directly from macOS's symbol renderer. Internally it reaches a…

- **Page:** https://magpie.gallery/i/sfsym-export-apple-sf-symbols-as-vector-svg-pdf-pn-m4f3
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** macos
- **Tags:** sf-symbols, svg, cli, export, design

## Source

Web · olliewagner: Sfsym – Export Apple SF Symbols as Vector SVG/PDF/PNG

- **Original:** https://news.ycombinator.com/item?id=47812964

> I found myself reaching for SF Symbols' 'Copy Image As…' quite often during agentic design sessions, so I made a command-line tool that the agent can use by itself. It exports Apple SF Symbols as SVG, PDF, or PNG. The vector paths come directly from macOS's symbol renderer. Internally it reaches a private ivar on NSSymbolImageRep to get the CUINamedVectorGlyph, draws into a CGPDFContext, then walks the PDF content stream back out as SVG `d` commands. The output matches what the system draws, rather than an approximation traced from rasters. A few things about it: - Every subcommand accepts `--json`, and `sfsym schema` returns a machine-readable description of the whole CLI. - Symbol enumeration reads the OS's Assets.car BOM tree, so the list of 8,300+ names stays current with macOS updates without a version table in the binary. - Each SVG `<path>` carries a `data-layer` attribute, so you can retheme in CSS without touching geometry. It's been saving me a bunch of clicking. Please let me know if you have any other ideas for it. https://github.com/yapstudios/sfsym

## GitHub projects

- https://github.com/yapstudios/sfsym

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
