opyeb SVGForge

OPYEB · SVGForge

SVG production guides

Basis 28 Nov 2026 · W3C SVG 1.1 and SVG 2, MDN, React documentation, WCAG 2.1 AA

Every guide can be checked against the optimizer: paste the example SVG, measure the before and after size, and compare the preview at two decimal places.

Optimise safely

OptimisationSVG optimisation: what can be removed, what must stay, and how to measure itWhat is safe to strip from an exported SVGPrecisionDecimal places in SVG: how much precision a drawing actually needsHow many decimals an SVG really needsDeliverySVG and text compression: what gzip and Brotli really saveHow much gzip and Brotli actually saveChecklistA ten-minute SVG size audit you can run before every releaseTen checks before you ship an SVG

Path data and geometry

Path dataThe SVG path d attribute: every command, absolute versus relative, and arc flagsReading and shortening path dataSizingviewBox versus width and height: how an SVG decides its sizeWhy an SVG scales, and when it does notPerformanceSVG filters: what they cost, and how to keep the bill smallThe real cost of an SVG filter

Ship it in code

ReactTurning an SVG into a React component: the attribute rules that actually matterFrom SVG markup to a React iconCSSSVG as a CSS data URI: escaping rules, URL encoding versus Base64Inlining an SVG in CSS correctlyIconsChoosing an icon system: inline, sprite, symbol, font or data URIFive ways to ship interface icons

Safety and access

SecuritySVG is executable: the script-injection routes you have to closeHow an SVG carries an XSS payloadAccessibilityAccessible SVG: naming a picture, hiding a decoration, and passing WCAG 1.1.1Making an SVG readable by a screen readerEmail and socialWhere SVG does not work: email clients and social previewsSVG in email and social cards

Tooling and motion

ToolingSVGO, a browser optimiser and hand editing: which to use and where each one is riskyComparing the three ways to optimise SVGMotionAnimating SVG: SMIL versus CSS, and the costs nobody mentionsSMIL or CSS for SVG animation

Every guide links back to the optimizer, so the SVG discussed in the article can be pasted in and measured before and after.

Open the optimizer
Back to the guides