JPEG to SVG Converter
Wrap a JPEG photo in an SVG file, in your browser. The photo is not traced.
or drop files here
JPEG Format
JPEG image
A lossy raster image format defined by the Joint Photographic Experts Group (ISO/IEC 10918-1), designed for photographs. .jpg and .jpeg are the same format.
- Lossy compression
- No alpha transparency
SVG Format
Scalable Vector Graphics
An XML graphics document that can contain paths, text and embedded raster pictures. This conversion supplies an embedded raster picture.
- XML document
- Can contain vector objects
- This output embeds a PNG
How to convert JPEG to SVG
Follow these steps to convert JPEG to SVG online.
Choose your JPEG file, or several at once.
Wait while the converter turns each file into SVG.
Download each new SVG file. Your original file isn't changed.
Related Tools
SVG to JPEG
Convert SVG images to JPEG format
JPEG Compressor
Compress and optimize JPEG files
JPEG to BMP
Convert JPEG images to BMP format
JPEG to HDR
Convert JPEG to HDR format
JPEG to JPG
Convert JPEG to JPG format
JPEG to JXL
Convert JPEG to JXL format
JPEG to PAM
Convert JPEG to PAM format
JPEG to PBM
Convert JPEG to PBM format
JPEG to PDF
Convert JPEG images to PDF documents
JPEG to PNG
Convert JPEG to PNG format
JPEG to RGB
Convert JPEG to RGB format
JPEG to TIF
Convert JPEG images to TIF format
JPEG to TIFF
Convert JPEG images to TIFF format
ARW to SVG
Convert ARW images to SVG format
AVIF to SVG
Convert AVIF files to SVG format
SVG Compressor
Compress and optimize SVG files
CUR to SVG
Convert CUR images to SVG format
HTML to SVG
Convert HTML to SVG: an SVG holding a picture of the page, 1280 px wide, so its text isn't editable. External images and stylesheets aren't loaded.
ICO to SVG
Convert ICO files to SVG format
JFIF to SVG
Convert JFIF files to SVG format
NEF to SVG
Convert NEF to SVG format
ORF to SVG
Convert ORF to SVG format
SVG to SVG
Convert SVG images to SVG format
TIFF to SVG
Convert TIFF files to SVG format
What to know before converting JPEG to SVG
- The picture is not traced; it sits inside the SVG as an embedded PNG at its pixel size.
- The SVG enlarges like a photo, because pixel images keep their resolution.
- Real vectors need tracing, which this page does not do.
- EXIF data, ICC profiles and XMP are not copied.
- Choose several JPEGs at once and each SVG downloads on its own.
About JPEG files
What is a JPEG file?
Work on JPEG began in 1986 inside the Joint Photographic Experts Group, whose name it carries. ITU-T T.81 appeared in 1992 as the core standard, and ISO/IEC 10918-1 followed in 1994. The baseline mode is lossy: Baseline JPEG cuts the image into 8x8 pixel blocks, applies a discrete cosine transform to each and finishes with Huffman coding, which is where detail is lost. At typical settings the output ends up 10 to 20 times smaller than the uncompressed image.
Both .jpg and .jpeg are one format, filed with IANA as image/jpeg. A channel stores 8 bits, and since no alpha channel exists, transparency is impossible. A progressive mode first shows a coarse version that sharpens as more data loads.
Programs usually ask for quality as a figure from 0 to 100; GIMP's default is 85. One figure can look different from one program to the next, so compare by eye. Layers cannot be stored in JPEG either.
Most digital cameras and scanners produce JPEG directly, which is why photographs reach you in it. 27 October 2006 marks the expiry of its US patents, and every major browser can display it.
Programs that open JPEG files
Windows, macOS and Linux
- GIMP imports JPEG for editing.
- ImageMagick reads JPG; which formats work depends on your install.
Web and mobile
- Desktop Chrome and Firefox display JPG, and on phones Chrome and Safari do.
JPEG and SVG compared
- Media types: image/jpeg for JPEG, image/svg+xml for SVG.
- Kind of file: a JPEG stores pixels. An SVG is XML that lays out flat graphics: shapes, text and images placed inside it. The W3C approved SVG 1.0 in 2001 and published version 1.1 in 2003. The standard is open.
- Sharpness: shapes stored as instructions can be drawn at any size. A photo embedded in an SVG keeps its original resolution when enlarged.
- Compression: JPEG discards detail to shrink. SVG is stored as text, so you can edit it by hand, and it lends itself to searching, indexing and compression.
- Transparency: SVG can be transparent where JPEG cannot.
- Readable source: you can open an SVG in a text editor and read it, which is how the hand-written method below works.
- Styling: CSS and JavaScript can act on an SVG, which makes it styleable, scriptable and animatable. A JPEG cannot.
- Extras: SVG adds clipping paths, masks and filters, and a gzipped file takes .svgz.
- The embedded copy: PNG compresses without loss, so the pixels your browser decoded are stored exactly, JPEG's earlier losses included.
- Typical use: JPEG is for web photographs, camera files, email attachments and sharing pictures. SVG is for logos, icons, illustrations, diagrams, charts and maps.
- Where it shows: an SVG can open on its own or sit inside an HTML page, and every major browser draws it.
No tracing happens here. The page decodes the JPEG, then writes an SVG that holds a single image element sized to the picture's pixel width and height, with the pixels embedded as a PNG.
Other ways to convert JPEG to SVG
- Text editor, by hand: save a text file ending in .svg that contains an svg element with a width, a height and the namespace http://www.w3.org/2000/svg. Inside it, add an image element whose href is the JPEG's file name, with width and height set to the picture's pixel size. MDN notes that JPEG, PNG and other SVG files are the formats SVG software must support, and that unlike HTML's img, width and height are required. This links the JPEG instead of embedding it, so keep the two files together or the picture can vanish. Open the finished SVG in any major browser to confirm the photo appears, then place the pair of files wherever the SVG is needed.
Problems with JPEG files
- Transparent areas are impossible: a JPEG cannot hold transparent pixels. Remove the background in an editor and start from a format with alpha instead.
- Layers are gone: JPEG does not keep an editable layer stack, so retain the project file you exported from. A flattened JPEG cannot be taken apart again.
- An older photo frame rejects it: certain frames refuse progressive files; save the picture again with progressive switched off.
- The quality number misleads: a setting copied from one editor to another will not reproduce the same file, so judge by the result and not the figure.
Frequently Asked Questions
Everything you need to know about our converter
How do I convert JPEG to SVG?
Does this turn my JPEG into vector shapes?
Will the SVG scale without blur?
Why would I want a JPEG inside an SVG?
How do I get real vectors from a JPEG?
Does the SVG keep the EXIF data and color profile?
Is the picture lossy again inside the SVG?
Can the SVG hold transparency?
Can I convert several JPEGs at once?
Is my photo uploaded?
Browse All Tools
Browse by category instead of one giant mixed list.
Convert Tools
Convert image, audio, video, document, and data files directly in your browser.