WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Erik v1.5.0

OH MY SVG

Unlock the magic of your website with the SVG block. Out-of-the-box security, dual storage modes, and turbocharged speed optimization!

OH MY SVG

The facts

Active installs
200+
Price
Free
Last updated
25 Apr 2026
Added
Jul 2022
Requires WP
5.7
Tested up to
WP 6.9.7
Requires PHP
7.1
Downloads
3,517

Our analysis

AI-assisted

OH MY SVG is a WordPress plugin designed to enhance your website by allowing you to add and manipulate SVG images directly within the Gutenberg block editor. It offers an intuitive interface for incorporating SVG icons and illustrations, along with features like automatic markup sanitation and optimization.

The plugin provides two storage modes to manage SVG files effectively: Inline Mode for small icons, which reduces page load time, and Media Library Mode for larger illustrations, which helps prevent database bloat. It also includes built-in utilities for colour customization and stroke adjustments, making it suitable for developers and designers looking to utilise SVGs without compromising performance or security.

Best for: This plugin is suitable for developers and designers who want to use SVG images on their WordPress sites.

What it does well

  • Supports SVG images in Gutenberg block editor
  • Offers two storage modes to manage database bloat
  • Includes built-in optimization tools for SVG markup
  • Allows in-editor editing of SVG colours and strokes
  • Maintains security by processing SVGs safely

Where it falls short

  • Limited information on user ratings and feedback
  • No details on compatibility with other plugins or themes

Verdict

OH MY SVG provides a practical solution for managing SVG images in WordPress while prioritising performance and security. It is a useful tool for those looking to enhance their site's visual elements.

From the developer

Erik's own description of OH MY SVG, lightly tidied.

Enhance your WordPress website with the power of SVG images using the OH MY SVG plugin. Easily add, manipulate, and optimize SVG images directly within the Gutenberg block editor.

Unlike traditional image blocks, this plugin provides an intuitive interface that allows you to incorporate SVG icons, illustrations, or HTML snippets effortlessly. Experience the convenience of automatic markup sanitation, SVGO optimization, and a range of built-in utilities like color customization, stroke adjustments, and element stripping.

🌟 Smart Dual Storage Modes (New!)

One of the biggest issues with using SVGs in WordPress is database bloat. If you paste a heavy SVG directly into the editor, its entire XML markup gets saved into every single post revision, quickly cluttering your database. OH MY SVG solves this by offering two distinct storage modes:

  1. Inline Mode (Best for tiny icons): The SVG markup is embedded directly within the page’s HTML. This drastically reduces page load time by eliminating server requests and conserving bandwidth. Ideal for small, lightweight vectors.
  2. Media Library Mode (Best for heavy illustrations): To prevent database bloat, this mode saves the SVG behind the scenes as a custom post meta attached to the WordPress Media Library. The plugin automatically generates a lightweight PNG proxy image so you can see it in your media grid. On the front end, it renders cleanly using a data URI, keeping your post content light, your database clean, and your page performance high.

Unleash your creativity with endless possibilities—animate SVGs using CSS or JavaScript, modify inner colors, and scale infinitely without losing sharpness.

Svg are awesome because:

  • ✌️ Pixel Perfect: SVGs render sharply on any screen and resolution.
  • 🗄️ Zero Database Bloat: Choose to link heavy SVGs to the Media Library, keeping your post content and revisions lightweight.
  • 🎨 In-Editor Editing: Customize colors, add strokes, and remove fills to create variations directly in Gutenberg.
  • Performance Boost: Use inline SVGs to save dozens of HTTP requests and reduce server download bandwidth.
  • 🛠️ Built-in Optimizer: Automatically compress and optimize markup using the integrated SVGO tool.
  • 🎉 Developer Friendly: Easy to animate with CSS and JavaScript since they render as DOM elements or standard image tags.

🔒 Security First

The OH MY SVG plugin prioritizes your website’s security. By default, WordPress blocks raw SVG file uploads due to severe XML/XSS vulnerabilities. This plugin keeps that protection intact. Instead of allowing dangerous direct .svg uploads, our plugin safely processes the SVG markup within the editor using a robust JavaScript purifier (DOMPurify). When saving to the Media Library, it creates a harmless PNG proxy file and securely stores the sanitized SVG string as an attachment metadata field. SVGs cannot be maliciously uploaded from the website “side” (e.g., frontend forms); only trusted users with editor permissions can include them.

Inspirations, links

Resources

Contribute

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it’s:

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for making sites fast.

WP-Optimize

Get caching and more with this powerful cache plugin. Cache, optimize images, clean your database and minify f...

Free 1M+ installs 4.8★ (2,606)
LiteSpeed Cache

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

Free 7M+ installs 4.8★ (2,764)
EWWW Image Optimizer

Comprehensive image optimization with WebP, AVIF, Lazy Load, and more. Optimize images automatically for Faste...

Free 1M+ installs 4.8★ (1,838)
Under Construction

Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...

Free 600k+ installs 4.8★ (1,285)
Smush

Smush

93

Compress and optimize images, enable lazy load, serve WebP & AVIF, and speed up your site with a global im...

Free 1M+ installs 4.8★ (6,051)
Converter for Media

Speed up your website by using our WebP & AVIF Converter. Optimize images and serve WebP and AVIF images i...

Free 500k+ installs 4.9★ (1,097)