Easy SVG
Need more icon sets, templates and integrations? Easy SVG Pro builds on this plugin. Built for developers: the documentation covers every feature, and the API reference explains functions, hooks and the REST API. Easy SVG lets you upload SVG files to WordPress safely and use them like any other imag
Need more icon sets, templates and integrations? Easy SVG Pro builds on this plugin.
Built for developers: the documentation covers every feature, and the API reference explains functions, hooks and the REST API.
Easy SVG lets you upload SVG files to WordPress safely and use them like any other image. On WordPress 7.1 and newer it is also your icon library for the Icon block.
SVG files stay sharp at every size and are tiny on disk. WordPress still refuses them, and for a good reason. SVG is not a picture format like PNG or JPEG. It is XML, and an SVG file can carry scripts, event handlers and links to other servers.
Easy SVG cleans every file with the maintained enshrined/svg-sanitize library before it is stored, and a file that cannot be cleaned is refused. Then you use SVGs like any other image: in the block editor, as a featured image, in galleries and in custom fields.
Add your own icons once, pick them in the Icon block, or print them with a shortcode or one line of PHP. The icons live in the plugin, not in your theme, so they stay when you change theme or page builder.
Try it without installing: the Live Preview on this page opens a demo site with three icons in the library and on a page.
Easy SVG has run on WordPress sites since 2017 and is active on more than 40,000 of them. It sends nothing to other servers, tracks nothing and loads no scripts on your front end.
Safe uploads, on every way in
- Cleaned before it is stored. Scripts, event handlers, javascript: links and references to other servers are removed. A broken or empty file is refused.
- Every way a file arrives. The media uploader, the block editor, the REST API, WP-CLI wp media import , media_sideload_image() and importers. XML-RPC uploads are accepted only when the file is already clean.
- A safety net. Every new SVG attachment is checked once more when it is created. A file that cannot be cleaned is removed again.
- The server decides the file type. What the browser claims does not count, so a renamed file cannot slip through.
- Real sizes in the media library. Width and height are read from the file, also when it only has a viewBox, so an SVG never shows as 0 by 0.
- A size limit. Up to 2 MB per file, or less when your server’s upload limit is lower.