Title: SVG Block
Author: Phi Phan
Published: <strong>ఏప్రిల్ 5, 2022</strong>
Last modified: నవంబర్ 19, 2025

---

Search plugins

![](https://ps.w.org/svg-block/assets/banner-772x250.jpg?rev=2783219)

![](https://ps.w.org/svg-block/assets/icon.svg?rev=2704908)

# SVG Block

 By [Phi Phan](https://profiles.wordpress.org/mr2p/)

[Download](https://downloads.wordpress.org/plugin/svg-block.1.2.3.zip)

 * [Details](https://te.wordpress.org/plugins/svg-block/#description)
 * [Reviews](https://te.wordpress.org/plugins/svg-block/#reviews)
 *  [Installation](https://te.wordpress.org/plugins/svg-block/#installation)
 * [Development](https://te.wordpress.org/plugins/svg-block/#developers)

 [Support](https://wordpress.org/support/plugin/svg-block/)

## Description

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](https://boldpatterns.net/keywords/svg?utm_source=wp.org&utm_campaign=readme&utm_medium=link&utm_content=SVG+Block)
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](https://wordpress.org/support/plugin/svg-block/reviews/#new-post)
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](https://wordpress.org/plugins/content-blocks-builder)**–
   This plugin turns the Block Editor into a powerful page builder by allowing you
   to create blocks, variations, and patterns directly in the Block Editor without
   needing a code editor.
 * **[Meta Field Block](https://wordpress.org/plugins/display-a-meta-field-as-block)**–
   A block to display custom fields as blocks on the front end. It supports custom
   fields for posts, terms, users, and setting fields. It can also be used in the
   Query Loop block.
 * **[Icon separator](https://wordpress.org/plugins/icon-separator)** – A tiny block
   just like the core/separator block but with the ability to add an icon.
 * **[Breadcrumb Block](https://wordpress.org/plugins/breadcrumb-block)** – A simple
   breadcrumb trail block that supports JSON-LD structured data and is compatible
   with WooCommerce.
 * **[Block Enhancements](https://wordpress.org/plugins/block-enhancements)** – 
   Adds practical features to blocks like icons, box shadows, transforms, etc.
 * **[Counting Number Block](https://wordpress.org/plugins/counting-number-block)**–
   A block to display numbers with a counting effect
 * **[Better YouTube Embed Block](https://wordpress.org/plugins/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.

## Screenshots

 * [[
 * Create an arrow background section
 * [[
 * Add an icon and add styling to it
 * [[
 * Create a curved background section
 * [[
 * Use the responsive height feature
 * [[
 * Use the SVG block as the image block
 * [[
 * Block’s settings
 * [[
 * Block’s placeholder

## Blocks

This plugin provides 1 block.

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

## Installation

 1. Upload the plugin files to the `/wp-content/plugins` directory, or install the 
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

## FAQ

### What problem does this plugin solve?

It helps to input inline SVG images as blocks easily and safely. You can use SVGs
from the icon library or upload your own. It also supports uploading SVG images 
to the media library and displaying them with this block.

### When should we use this plugin?

 * When you need to quickly input some icons. It bundles with more than 3000 icons
   from some popular icons library such as “WordPress”, “Dashicons”, “Ionicons”,
   and “Bootstrap icons”.
 * Or you need to use an SVG image as a divider, or separator. It also bundles with
   some common non-rectangular dividers like tilts, curves, triangles…
 * You can also use it as an image block but for SVG format only like images from
   undraw.co.
 * You can also use it as a button with an icon, and it can be nested inside the
   Query Loop with the ‘Link to post’ enabled.

### Why needs this plugin?

It’s super easy to use. It’s accessibility-ready. It comes with lots of additional
features like responsive width and height, responsive spacing (padding and margin),
responsive justify alignment, flip, revert, responsive border, border-radius, box-
shadow builder…

### Who needs this plugin?

Anyone can use this plugin.

## Reviews

![](https://secure.gravatar.com/avatar/1d80ceb23ce4a5bc235e975afdb8a9aadb2445917dca92dcc3c7b6ec8856a1fb?
s=60&d=retro&r=g)

### 󠀁[Indispensable](https://wordpress.org/support/topic/indispensable-276/)󠁿

 [domguard](https://profiles.wordpress.org/domguard/) ఫిబ్రవరి 18, 2026 1 reply

Intégration parfaite du SVG : on peut modifier la couleur de ses icones, et on les
retrouve dans la librairie média standard. Ce devrait être intégré dans Wordpress.
Tous les plugins de cet auteur sont excellents.

![](https://secure.gravatar.com/avatar/8006731d7ac58d1b431a0f826fa2ae72ca8552043e1e46ac7220d89ed5716c3b?
s=60&d=retro&r=g)

### 󠀁[Exactly what I needed](https://wordpress.org/support/topic/exactly-what-i-needed-982/)󠁿

 [swinggraphics](https://profiles.wordpress.org/swinggraphics/) ఫిబ్రవరి 26, 2025
1 reply

Outputs SVGs inline and lets me set the size and fill colors.

![](https://secure.gravatar.com/avatar/e6bb3ddf0cea9857518a2ccd8e2a6e7c64b234814e3cd2c574d47b0ac147a980?
s=60&d=retro&r=g)

### 󠀁[Amazing](https://wordpress.org/support/topic/amazing-4021/)󠁿

 [Flavia Bernárdez Rodríguez](https://profiles.wordpress.org/flabernardez/) సెప్టెంబర్
19, 2024 1 reply

It does what it says, so… it is perfect

![](https://secure.gravatar.com/avatar/7bd0b0d53f216ade1289d09973ccbf480b42d66a4b111da815ceb9efad2a6f44?
s=60&d=retro&r=g)

### 󠀁[Best SVG Plugin](https://wordpress.org/support/topic/best-svg-plugin-2/)󠁿

 [Sven Lennartz](https://profiles.wordpress.org/svens-fiction/) ఆగస్ట్ 15, 2024 
1 reply

I have tested several SVG plugins, and this one seems to be the best of them all.
Animations are even displayed directly in the block editor. It offers many customization
options and optimal scaling. Top-notch!

![](https://secure.gravatar.com/avatar/3ecd8d3267bb6490cbd69972b9dce35e0e36051501987362ff87cb7090fdfda4?
s=60&d=retro&r=g)

### 󠀁[Works Like a Charm](https://wordpress.org/support/topic/works-like-a-charm-2335/)󠁿

 [Anonymous User 13711045](https://profiles.wordpress.org/anonymized-13711045/) 
జూన్ 19, 2024 1 reply

This plugin adds some missing functionality that Gutenberg should have by default.
It’s great. The developer is also very receptive and quick in adding features.

![](https://secure.gravatar.com/avatar/c44ef91a6f92971bde7f955b113670d2370de78498f0f48787bd152de655c00b?
s=60&d=retro&r=g)

### 󠀁[Perfect and ready for french](https://wordpress.org/support/topic/perfect-and-ready-for-french/)󠁿

 [Olivier Gérard](https://profiles.wordpress.org/bibliocloud/) జూన్ 15, 2024 1 reply

Hello, This extension is really very complete.I’ve posted the full French translation
on translate.wordpress.org/locale/fr/default/wp-plugins/svg-block/ Give me feedback
if you wish.

 [ Read all 14 reviews ](https://wordpress.org/support/plugin/svg-block/reviews/)

## Contributors & Developers

“SVG Block” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ Phi Phan ](https://profiles.wordpress.org/mr2p/)

“SVG Block” has been translated into 4 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/svg-block/contributors)
for their contributions.

[Translate “SVG Block” into your language.](https://translate.wordpress.org/projects/wp-plugins/svg-block)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/svg-block/), check 
out the [SVN repository](https://plugins.svn.wordpress.org/svg-block/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/svg-block/) by [RSS](https://plugins.trac.wordpress.org/log/svg-block/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.3

_Release Date – 19 November 2025_

 * Fixed – Missing default breakpoint values that caused responsive height styles
   to stop working.

#### 1.2.2

_Release Date – 15 November 2025_

 * Fixed – Responsive height style was not working
 * Added – A new hook `apply_filters( 'boldblocks_svg_block_limit_svgs', 500 )` 
   allows users to load more SVGs icons from the media library

#### 1.2.1

_Release Date – 27 August 2025_

 * Fixed – Enqueued dynamic styles for classic themes

#### 1.2.0

_Release Date – 18 August 2025_

 * Improved – Inline styles are now rendered as dynamic styles for cleaner markup
 * Improved – Revamped the inspector settings
 * Improved – Added support for negative margins

#### 1.1.25

_Release Date – 14 November 2024_

 * Added – Add typography support feature when using the block as a button
 * Security – Sanitize the SVG files upload via REST API
 * Updated – Required PHP 7.1

#### 1.1.24

_Release Date – 24 October 2024_

 * Updated – SDK to implement minor UI changes and remove deprecated code
 * Improved – Replaced classnames with clsx
 * Updated – Tested compatibility with WP 6.7 and set minimum requirement to WP 
   6.5

#### 1.1.23

_Release Date – 03 July 2024_

 * Improved – Refactor code to make the placeholder look good when installing the
   block from the inserter
 * Improved – Adjust vertical spacing style for some inspector controls
 * Added – Support clientNavigation interactivity

#### 1.1.22

_Release Date – 30 May 2024_

 * Updated – Update the unique ID for the SVG on the server
 * Refactor – Vertical spacing
 * Improved – Adjust the styling for the replacement SVG dropdown in the contentOnly
   mode

#### 1.1.21

_Release Date – 22 May 2024_

 * Improved – The SVG URL input UI component
 * Updated – Put the shadow panel inside the Border panel
 * Improved – Allow inputting alpha value for colors
 * Fixed – Fix some small styling issues

#### 1.1.20

_Release Date – 28 April 2024_

 * Improved – Uploading SVGs: sanitize and allow only the administrator can upload
   SVG

#### 1.1.19

_Release Date – 19 April 2024_

 * Added – Allow inputting SVG data, URL, button text on the content only locking
 * Updated – Refactor code

#### 1.1.18

_Release Date – 01 April 2024_

 * Added – Allow the ability to exclude the icon library from the icon popup
 * Updated – Update SDK
 * Updated – Icon Library

#### 1.1.17

_Release Date – 31 October 2023_

 * Added – Allow uploading SVG images to the WordPress media library and load those
   images into its icon library
 * Updated – Update icons from the latest version of third-party providers
 * Updated – Update SDK

#### 1.1.16

_Release Date – 22 September 2023_

 * Added – New setting named `linkToPost`. The block now can be used in a Query 
   Loop and acts like a link/button with an icon that links to the post
 * Updated – Update ‘Requires at least’ to 6.3 for the new HTML API, and new default
   size controls
 * Fixed – Change border from BorderBoxControl to BorderControl

#### 1.1.15

_Release Date – 08 September 2023_

 * FIX – Generate empty variables for margin

#### 1.1.14

_Release Date – 03 September 2023_

 * DEV – Use the default control for border, spacing settings
 * DEV – Disable toggle off for width, icon width, gap between icon and text

#### 1.1.13

_Release Date – 09 August 2023_

 * DEV – Update new style for the icon library popup in WP 6.3
 * DEV – Refactor code

#### 1.1.12

_Release Date – 28 June 2023_

 * DEV – Use ToolsPanel for inspector controls
 * DEV – Improve performance

#### 1.1.11

_Release Date – 11 March 2023_

 * DEV – Update icon library
 * DEV – Add more clear help texts for the title and the description
 * DEV – Refactor for WP 6.2

#### 1.1.10

_Release Date – 09 February 2023_

 * DEV – Add better support for the ‘Use as button’ feature

#### 1.1.9

_Release Date – 03 February 2023_

 * DEV – Add SVGO GUI tool to the help text
 * DEV – Update SDK

#### 1.1.8

_Release Date – 27 October 2022_

 * DEV – Allow clear color for the ColorGradientControl

#### 1.1.7

_Release Date – 04 October 2022_

 * FIX – placeholder’s style is not loading in the site editor

#### 1.1.6

_Release Date – 03 October 2022_

 * FIX – Focus on the search box on the first load

#### 1.1.5

_Release Date – 29 September 2022_

 * REFACTOR – Redesign the placeholder for the block
 * DEV – Add divider icons to the icon library
 * REFACTOR – Using a data store for the icon library
 * FIX – Remove empty style variables and add deprecated for them

#### 1.1.4

_Release Date – 18 September 2022_

 * FIX – Compatibility issue with the Gutenberg plugin
 * DEV – Refactor for localization

#### 1.1.3

_Release Date – 31 August 2022_

 * DEV – Add stack context

#### 1.1.2

_Release Date – 30 August 2022_

 * DEV – Change the default value for box-shadow
 * FIX – Reset icon lists by clicking on the reset search button

#### 1.1.1

_Release Date – 27 July 2022_

 * FIX – The block makes the page in ‘dirty’ state

#### 1.1.0

_Release Date – 26 July 2022_

 * DEV – Allow the ability to turn the block into a button with text & icon
 * DEV – Add ‘auto’ value to the options of width and height
 * DEV – Double click on the icon on the modal to insert the icon

#### 1.0.13

_Release Date – 01 July 2022_

 * DEV – Add box-sizing as border-box by default

#### 1.0.12

_Release Date – 30 Jun 2022_

 * FIX – Convert inline style to style object

#### 1.0.11

_Release Date – 19 Jun 2022_

 * DEV – Update SDK
 * DEV – Refactor icon library modal
 * DEV – Allow uploading SVG files

#### 1.0.10

_Release Date – 12 May 2022_

 * REFACTOR Update sdk

#### 1.0.9

_Release Date – 30 April 2022_

 * FIX – Missing color slug

#### 1.0.8

_Release Date – 30 April 2022_

 * DEV – Upgrade color format

#### 1.0.7

_Release Date – 28 April 2022_

 * DEV – Add title to block registration in JS

#### 1.0.6

_Release Date – 21 April 2022_

 * DEV – Optimize code for performance

#### 1.0.5

_Release Date – 19 April 2022_

 * REFACTOR – Move the PanelColorGradientSettings out of PanelBody

#### 1.0.4

_Release Date – 15 April 2022_

 * DEV – Icon library modal: focus the search box on open, press enter to insert
   icon

#### 1.0.3

_Release Date – 12 April 2022_

 * FIX – Remove old cached icons due to storage limitation issue.

#### 1.0.2

_Release Date – 10 April 2022_

 * DEV – Update icons pack

#### 1.0.1

_Release Date – 07 April 2022_

 * FIX – Fix typo issue

#### 1.0.0

_Release Date – 05 April 2022_

## Meta

 *  Version **1.2.3**
 *  Last updated **5 నెలలు ago**
 *  Active installations **4,000+**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.1 or higher **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/svg-block/), [English (US)](https://wordpress.org/plugins/svg-block/),
   [French (France)](https://fr.wordpress.org/plugins/svg-block/), [Spanish (Chile)](https://cl.wordpress.org/plugins/svg-block/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/svg-block/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/svg-block)
 * Tags
 * [block](https://te.wordpress.org/plugins/tags/block/)[button](https://te.wordpress.org/plugins/tags/button/)
   [icon](https://te.wordpress.org/plugins/tags/icon/)[image](https://te.wordpress.org/plugins/tags/image/)
   [SVG](https://te.wordpress.org/plugins/tags/svg/)
 *  [Advanced View](https://te.wordpress.org/plugins/svg-block/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  14 5-star reviews     ](https://wordpress.org/support/plugin/svg-block/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/svg-block/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/svg-block/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/svg-block/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/svg-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/svg-block/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/svg-block/reviews/)

## Contributors

 *   [ Phi Phan ](https://profiles.wordpress.org/mr2p/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/svg-block/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://boldblocks.net?utm_source=wp.org&utm_campaign=readme&utm_medium=link&utm_content=SVG+Block+Donate)