Contents
  1. The short answer
  2. Before you export: check the SVG
  3. Decide on the output size and format
  4. Method 1: Rasterize in a vector editor
  5. Method 2: Use a command-line SVG renderer
  6. Method 3: Render in a web browser
  7. Verify the result
  8. Gaps to resolve with the recipient

The short answer

To rasterize an SVG logo, open it in an SVG renderer, set the pixel width or height you need, and export it to a raster format such as PNG. Use PNG if the logo needs a transparent background, or JPEG only when a solid background is acceptable. Keep the original SVG as your master file and treat every raster export as a copy made for one specific use.

Some terms first. An SVG (Scalable Vector Graphics) file describes a logo as mathematical paths, shapes, fills and strokes, so it can be drawn at any size without losing sharpness. Rasterizing turns that description into a fixed grid of pixels. An SVG renderer, also called an SVG rasterizer, is the software that does the drawing: a web browser, a vector editor such as Inkscape or Adobe Illustrator, or a command-line tool such as rsvg-convert, resvg or CairoSVG. After rasterizing, the image has a fixed resolution. Enlarging it later will blur or pixelate the edges, so export at the size you actually need.

Before you export: check the SVG

Renderers do not all support SVG features equally, so a quick inspection can save you from a bad export. Open the file in a vector editor or a text editor and look for the following:

  • Live text: if the logo uses <text> elements instead of outlined paths, the renderer substitutes whatever font is installed on that machine. Convert type to outlines in the master artwork, or make sure the correct font is installed where you render.
  • Embedded or linked images: a .svg extension does not guarantee pure vector content. An SVG can contain bitmap images, and exporting at a large size will not add detail to them. Linked external files may not load at all.
  • Filters, masks, blend modes and CSS styling: support differs between renderers. Effects like these are the most common reason one tool's output differs from another's.
  • The viewBox and the width and height attributes: these control the canvas and the aspect ratio. If the viewBox has extra empty space or crops the artwork, the raster will show the same problem.
  • Usage rights: being able to open and export a logo file does not give you permission to reuse the logo. Confirm that you have the right to use the artwork for your purpose.

Decide on the output size and format

Pixel dimensions are what determine the quality of a raster logo. A DPI or PPI value stored in the file only tells print software how large to print those pixels. Changing DPI without changing the pixel count adds no detail. If the person receiving the file has given you required dimensions, follow them. If they haven't, ask what size the logo will be displayed or printed at. Fixed numbers aren't given here because the right size depends on where the logo will be placed.

Set only the width or only the height, and let the renderer calculate the other value from the viewBox. This keeps the proportions intact. If the logo will appear on high-density screens, a common approach is to export a larger version and let the layout scale it down.

  • PNG: lossless and supports transparency. This is the usual choice for logos on web pages, in apps and in documents.
  • JPEG: lossy and has no transparency. It can soften crisp edges and flat color areas, so use it only when a background color is acceptable and the recipient specifically asks for it.
  • WebP: supports transparency and both lossless and lossy compression. Confirm that the destination platform accepts it.
  • CMYK print files: SVG colors are normally defined in sRGB. Rasterizing does not convert a logo to print color. If a printer needs CMYK or spot colors, that conversion is a separate step, usually from the vector master, and the printer's specifications decide how it's done.

Method 1: Rasterize in a vector editor

This is the easiest route if you have Inkscape, Illustrator, Affinity Designer or a similar program. Open the SVG, check that fonts and effects look right, and then use the program's export function, not Save As. Choose PNG, set the pixel width or height, decide whether the background should be transparent, and choose whether to export the whole page or only the selected artwork. Exporting the page keeps the padding defined by the viewBox. Exporting the selection crops tightly to the artwork.

In Inkscape, the same export can be run from the command line, which helps when you need several sizes. The width below is a placeholder; replace it with your required value.

inkscape logo.svg --export-type=png --export-filename=logo.png --export-width=1200

Method 2: Use a command-line SVG renderer

Dedicated rasterizers are fast, can be scripted, and give repeatable results. rsvg-convert comes from the librsvg project. resvg is a standalone renderer. CairoSVG is a Python tool. Each draws SVG using its own engine, so if a logo relies on less common features, test the file in more than one of them. Again, the width values are placeholders.

rsvg-convert -w 1200 logo.svg -o logo.png

resvg -w 1200 logo.svg logo.png

cairosvg logo.svg -o logo.png --output-width 1200

ImageMagick can also convert SVG files, but the result depends on which SVG delegate it uses on your system. Check its output against another renderer before you rely on it for logo work.

Method 3: Render in a web browser

Browsers are capable SVG renderers and handle CSS-styled SVG especially well. Opening the file in a browser is a good way to preview how it will look on the web. Turning that view into a file, through a screenshot, a developer-tools capture or a canvas-based script, gives you less direct control over pixel dimensions and transparency than an editor or command-line tool. For delivery files, a dedicated export method is usually more reliable.

Verify the result

Open the exported file next to the SVG and check it at 100 percent zoom:

  • The pixel dimensions match what you set or what the recipient asked for.
  • The proportions match the original, with no stretching or unintended cropping.
  • The edges are smooth, and thin strokes and small details are still visible at the final size. If they disappear, the recipient may need a simplified version of the logo for small sizes rather than a bigger export.
  • The letterforms match the approved logo, which shows that no font substitution happened.
  • The colors match the reference artwork.
  • Transparency works: place the PNG on both a light and a dark background and look for halos, white fringes or a background that should not be there.
  • Filters, gradients and masks look the same as they do in the vector master.

Gaps to resolve with the recipient

This guide has no confirmed specifications for any particular platform, printer or brand system. Exact pixel sizes, file-size limits, color requirements and padding rules have to come from whoever will use the file or from the brand's own guidelines. If those details are missing, ask for them before you export final files, and keep the original SVG so you can produce new sizes later without quality loss.