.svg SVG image
Images
| MIME type | image/svg+xml |
|---|---|
| Description | SVG image |
| Acronym | SVG – Scalable Vector Graphics |
| Category | Images |
| Signature (magic bytes) | 3C 21 44 4F 43 54 59 50 45 20 73 76 67 (<!DOCTYPE svg)3C 73 76 67 (<svg) |
| Based on | application/xml |
Frequently asked questions
What is a .svg file?
A .svg file is a “SVG image” (MIME type image/svg+xml). SVG stands for Scalable Vector Graphics.
How do I open a .svg file?
With any image viewer that supports the format – the Photos app on Windows, Preview on macOS, Eye of GNOME or GIMP on Linux. For unusual formats a converter such as ImageMagick helps.
How can you tell a genuine .svg file?
By the bytes at the start of the file, the signature (magic bytes): 3C 21 44 4F 43 54 59 50 45 20 73 76 67 (<!DOCTYPE svg) and 3C 73 76 67 (<svg). On Linux and macOS, file --mime-type example.svg checks the real type regardless of the extension.
Which format is .svg based on?
Technically a .svg file is a subtype of “XML document” (application/xml), so programs for that base format can often read it too.
Which MIME type belongs to .svg?
The MIME type is image/svg+xml. In the Apache web server: AddType image/svg+xml .svg; in nginx: types { image/svg+xml svg; }.