Images & Media5 min readUpdated 2026-11-15
SVG Accessibility Best Practices: Decorative vs. Informative Vectors
Avoid silent or garbled inline SVG announcements across VoiceOver, NVDA, and JAWS.
Key Takeaways
- Add aria-hidden='true' and focusable='false' to decorative button/link SVGs.
- Add role='img' and aria-labelledby pointing to <title> (or aria-label) on meaningful standalone SVGs.
Icon Buttons vs. Diagrams
When an SVG sits inside a labeled <button>, hide the SVG with aria-hidden='true' and label the <button> itself. For standalone charts or illustrations, use role='img' plus <title> and <desc>.
Accessible Standalone SVG
Recommended Pattern
<svg role="img" aria-labelledby="svg-t" viewBox="0 0 24 24">
<title id="svg-t">Verified badge</title>
<path d="..." />
</svg>Frequently Asked Questions
VoiceOver on Safari/iOS frequently skips inline <svg> elements unless role='img' is explicitly declared.
Interactive Tools for This Guide
Image & SVG
SVG Accessibility Checker
Validate inline SVG role="img", <title>, <desc>, aria-label, and aria-hidden.
Open tool
Image & SVG
SVG Title and Description Checker
Verify direct-child <title>, <desc>, and aria-labelledby/describedby wiring in SVGs.
Open tool