SVG

SVG Nedir?

SVG (Ölçeklenebilir Vektör Grafikleri), grafiklerin pikseller yerine matematiksel şekiller kullanarak tanımlandığı XML tabanlı bir vektör resim formatıdır; bu sayede kalite kaybı olmadan sonsuz ölçekleme imkanı sunar.

Son güncelleme:

Year1999
TypeVektör
UsageW3C

What is it?

SVG (Ölçeklenebilir Vektör Grafikleri), 1999 yılında tanıtılan bir W3C standart formatıdır. JPG ve PNG gibi piksel tabanlı raster formatların aksine, SVG, görüntüleri XML işaretlemesi kullanarak şekillerin, yolların ve renklerin matematiksel tanımları olarak saklar.

SVG, pikseller yerine matematik kullandığı için, SVG görüntüleri herhangi bir boyuta - bir favicon'dan bir reklam panosuna kadar - sıfır kalite kaybı ile ölçeklendirilebilir. SVG dosyaları ayrıca metin olarak düzenlenebilir, CSS ile stillendirilebilir ve JavaScript ile animasyonlu hale getirilebilir.

Technical Specifications

StandardW3C SVG Specification
File Extension.svg / .svgz
MIME Typeimage/svg+xml
Format TypeVector (XML-based)
ScalabilityInfinite - no quality loss
AnimationSupported (CSS and JS)

Pros & Cons

Advantages

Infinitely Scalable

Looks sharp at any size from 16x16 pixels to poster-sized without any pixelation.

Small File Size

Simple graphics like logos and icons are often smaller than equivalent PNG files.

CSS and JS Controllable

SVG elements can be styled, animated, and manipulated with code in the browser.

Accessible

SVG supports text descriptions and semantic markup for accessibility.

Disadvantages

Not for Photos

SVG cannot efficiently represent photographic images - use JPG or WebP instead.

Complex SVGs Can Be Slow

Very detailed SVG illustrations with thousands of paths can hurt rendering performance.

Security Concerns

SVG can contain scripts - untrusted SVG files should be sanitized before display.

Limited Print Support

Some print workflows require conversion to PDF or rasterization.

When to Use It

SVG, web üzerinde ölçeklenmesi veya etkileşimli olması gereken her grafik için ideal formattır.

Logos and Branding

Company logos that appear in multiple sizes - from favicon to banner - stay crisp at every scale.

Icons

UI icons that need to work at 16px and 512px alike, with optional color theming via CSS.

Illustrations

Charts, diagrams, maps, and illustrations that need to be sharp on retina displays.

Animations

Lightweight animated graphics and transitions without video overhead.

Convert Your Files Online - Free

Our free online converter supports all major formats. No software to install, no registration required.

Start Converting Now

Frequently Asked Questions

Can I use SVG on any website?

Yes. All modern browsers support SVG natively in HTML. You can embed SVG inline, as an img src, or as a CSS background image.

Is SVG better than PNG for logos?

Yes, for web use. SVG logos stay sharp at any size and are often smaller in file size. PNG is a raster format - a PNG logo may look blurry when scaled up.

Can SVG files be animated?

Yes. SVG supports animation through CSS animations, CSS transitions, and JavaScript (GSAP, anime.js). SMIL animation is also part of the SVG spec but less commonly used.

Is SVG safe to use from untrusted sources?

Be careful. SVG files can contain embedded scripts. Never display SVG from untrusted sources without sanitizing it first. Use a library like DOMPurify to sanitize user-uploaded SVGs.

What is the difference between SVG and EPS?

Both are vector formats. SVG is designed for the web (browser-native, CSS/JS compatible). EPS is designed for print and professional publishing. SVG is the modern choice for most use cases.