SVG (Scalable Vector Graphics) is an XML-based vector image format. Unlike raster formats (PNG, JPG) which store pixels, SVG stores mathematical descriptions of shapes — lines, curves, colors, and text. This means SVGs can scale to any size without losing quality, making them ideal for logos, icons, illustrations, and diagrams. SVGs are also typically much smaller than equivalent PNGs for simple graphics. SVGs can be styled with CSS, animated with JavaScript, and embedded directly in HTML. The limitation is that SVGs cannot represent photographs — photos should remain as JPEG or WebP.
glossary2 min read
What is SVG?
SVG is a vector image format that scales to any size. Learn when to use SVG vs PNG vs JPG.
Try these tools
More glossary articles
What is WebP?
WebP is a modern image format by Google offering superior compression. Learn when and how to use WebP images.
What is HEIC?
HEIC is the default photo format on iPhones. Learn what it is, why Apple uses it, and how to convert it.
What is JSON?
JSON (JavaScript Object Notation) is the standard data format for web APIs. Learn the syntax and common uses.
What is Regex?
Regular expressions (regex) are patterns for matching text. Learn the basics and common use cases.