What is an SVG file?

Vector image written as text. It scales to any size without losing quality, which suits logos and icons. It can also contain scripts and embedded images.

Drop your file here

or select file

Images, video, audio, documents, data, archives, fonts and more.

About SVG file:

01SVG at a glance

Full name
Scalable Vector Graphics
Type
Vector image, XML text
Extension
.svg (.svgz when compressed)
MIME type
image/svg+xml
How to spot it
Text that starts with <svg or <?xml
Standard
W3C SVG 1.1 (2003, second edition 2011)

02What is an SVG file

SVG describes a picture as shapes, paths, colours and text instead of pixels. It is plain XML text, so it scales to any size without getting blurry, and its file size is often tiny.

It suits logos, icons, illustrations and charts. You can edit it in a text editor, style it with CSS and animate it with CSS or JavaScript. Photos are a poor fit: turning a photo into vectors gives a huge file or a cartoon look.

Because SVG is code, it can contain scripts and links to other files. Browsers do not run scripts in an SVG that is loaded through an image tag, but you should not open SVG files from sources you do not trust, and many sites block SVG uploads for this reason.

Text in an SVG depends on installed fonts. For cutting machines such as Cricut or Silhouette and for print shops, convert text to outlines (paths) before you export.

03Good and bad sides

Good

  • Sharp at any size, from favicon to billboard
  • Often very small files
  • Editable as text, stylable with CSS
  • Accepted by most print-on-demand services

Bad

  • Not suited to photos
  • Can contain scripts, so trust the source
  • Text can change if the font is missing
  • Not accepted as a photo by many online stores

04Best for

  • Logos and icons

    Sharp at any size, from favicon to billboard, with a tiny file.

  • Websites

    Logos, icons and illustrations stay sharp on every screen.

  • Editing and master copy

    Editable as text and stylable with CSS, so a logo stays fully editable.

  • Cutting and engraving machines

    SVG is the usual cutting file. Convert text to outlines first.

  • Print

    Scales perfectly, but most print shops prefer PDF. Ask first.

  • Email and messengers

    SVG can contain scripts, so open files only from sources you trust.

05How to open it

Browsers
Chrome, Firefox, Safari and Edge show SVG
Vector editors
Inkscape (free), Adobe Illustrator, Affinity Designer, Figma
Windows and macOS
Standard image viewers often cannot open SVG. Use a browser or an editor
Code
Any text editor, because the file is XML

06Convert and compare

Related formats: PNG, JPG, WEBP

Sources