Skip to content
Performance·Beginner·Conceptual·1 min read

When should you use SVG instead of a raster format?

Short interview answer

For icons, logos, diagrams, and other vector art: SVG scales to any size without extra bytes, stays crisp at any density, and is often smaller for simple graphics. It's the wrong choice for photographs, which have no vector representation.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Image and asset optimization

Related questions