WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Phi Phan v1.2.4

SVG Block

Display an SVG image as a block, which can be used for displaying images, icons, dividers, buttons

SVG Block

The facts

Rating
5★ from 14
Active installs
4k+
Price
Free
Last updated
16 Aug 2026
Added
Apr 2022
Requires WP
6.5
Tested up to
WP 7.1
Requires PHP
7.1
Downloads
52,534

Our analysis

AI-assisted

SVG Block is a WordPress plugin that enables you to display SVG images as inline HTML markup. You can select from an icon library containing over 3000 icons or upload your own SVG files directly within the block's settings. The plugin also allows you to upload SVG images to the WordPress media library and integrate them into the icon library.

This plugin is designed for users who want to enhance their site with custom SVG graphics. It includes features for accessibility, automatic sanitisation of SVG markup, and various customisation options for SVG images.

Best for: This plugin suits WordPress users looking to incorporate SVG graphics into their sites.

What it does well

  • Supports over 3000 icons from an icon library
  • Allows uploading custom SVG images to the media library
  • Accessibility ready with automatic title and description generation
  • Sanitises SVG markup for safety and performance
  • Includes common non-rectangular dividers

Where it falls short

  • Limited to SVG files with specific XML declaration
  • No information on additional support or documentation

Verdict

SVG Block provides a straightforward solution for displaying SVG images, making it a useful tool for those wanting to enhance their site's visual elements.

From the developer

Phi Phan's own description of SVG Block, lightly tidied.

This SVG block allows you to display SVG images as inline HTML markup. You can either choose an icon from the icon library with more than 3000 icons or you can upload or input your custom SVG images directly in the block’s setting.
It also allows you to upload SVG images to the WordPress media library, and load them into the icon library. Only SVG files that have XML declaration at the top like <?xml version="1.0" encoding="utf-8"?> can be uploaded to the WordPress media library.

Key Features

  • Accessibility ready with ‘img’ role, automatically generates title and description from settings.
  • Automatically sanitize SVG markup to make it safe and lightweight.
  • Include almost all settings to customize the SVG image.
  • Include a collection of common non-rectangular dividers.
  • An icon library included icons from “Bootstrap Icons”, “Ionicons”, “Dashicons” and new “WordPress Icons”.
  • Allow uploading SVG images to the WordPress media library
  • Automatically load SVG images from the media library into the icon library

Video tutorials

How to create an icon with custom styles using the icon library:

How to create a non-rectangular background section:

How to create icon buttons:

Please take a look at these custom block patterns that use this block to see how it can be applied to real-world sites.

If this plugin is useful for you, please do a quick review and rate it on WordPress.org to help us spread the word. I would very much appreciate it.

Please check out my other plugins if you’re interested:

  • Content Blocks Builder – Build custom layouts and blocks visually in the Block Editor without needing a code editor, using only core blocks and native Gutenberg features.
  • Meta Field Block – A single block to display custom fields in the Block Editor without coding. It supports ACF, MetaBox, WooCommerce, meta, rest field, shortcode and more. Works everywhere: in the Site Editor (FSE), the Block Editor, inside Query Loop, WooCommerce Product Collection, Term Query blocks, and even in template files.
  • Icon separator – A tiny block just like the core/separator block but with the ability to add an icon.
  • Breadcrumb Block – A simple breadcrumb trail block that supports JSON-LD structured data and is compatible with WooCommerce.
  • Block Enhancements – Adds practical features to blocks like icons, box shadows, transforms, etc.
  • Counting Number Block – A block to display numbers with a counting effect
  • Better YouTube Embed Block – A block to solve the performance issue with embedded YouTube videos. It can also embed multiple videos and playlists.

The plugin is developed using @wordpress/create-block.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for custom content structures.

Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
Advanced Custom Fields

ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 millio...

Free 2M+ installs 4.5★ (1,438)
Simple Custom Post Order

Easily reorder posts, pages, custom post types, and taxonomies with intuitive drag-and-drop sorting in the Wor...

Free 300k+ installs 4.8★ (569)
WP Activity Log

The #1 user-rated activity log plugin for event logging, activity monitoring and change tracking.

Free 300k+ installs 4.7★ (488)
Custom Post Type UI

Admin UI for creating custom content types like post types and taxonomies

Free 1M+ installs 4.6★ (276)