SVG سے PNG کنورٹر

استعمال کا طریقہ 3 مراحل
  1. ایک SVG فائل منتخب کریں دبائیں، یا کوڈ چسپاں کریں۔
  2. آؤٹ پٹ کا سائز اور اختیاری پس منظر کا رنگ طے کریں۔
  3. PNG میں بدلیں دبائیں، پھر نتیجہ ڈاؤن لوڈ کریں۔
پوری طرح آپ کے براؤزر میں پروسیس ہوتا ہے۔ کچھ اپ لوڈ نہیں ہوتا۔

SVG کو آپ کے چنے ہوئے سائز پر ایک کینوس پر کھینچا جاتا ہے، اس لیے نتیجہ اُس ریزولوشن پر اتنا ہی تیز ہوتا ہے جتنا ویکٹر اجازت دے۔ نام سے حوالہ دیے گئے فونٹس اور دوسری ویب سائٹس سے آنے والی تصاویر سیکیورٹی وجوہات کی بنا پر اس رینڈر کے دوران حاصل نہیں کی جا سکتیں — اگر ان میں سے کوئی غائب لگے تو عبارت کو پاتھ میں بدلیں اور تصاویر کو data URI کے طور پر شامل کریں۔

یہ ٹول کیسے کام کرتا ہے

SVG شکلیں بیان کرتا ہے؛ PNG پکسل بیان کرتا ہے۔ بدلنے کا مطلب ہے کوئی سائز چننا اور براؤزر سے ویکٹر کو اسی پر بنوانا، اسی لیے نتیجے کا سائز فائل کی خاصیت نہیں بلکہ ایک فیصلہ ہے — ایک ہی SVG سولہ پکسل کا آئیکن بھی دے سکتی ہے اور چار ہزار پکسل کا بینر بھی، دونوں میں کوئی نقصان نہیں، کیونکہ ہر بار شکلوں سے ہی بنایا جاتا ہے۔

پیمائشیں SVG کی اپنی چوڑائی اور اونچائی سے پڑھی جاتی ہیں، ان کے نہ ہونے پر اس کے viewBox سے، اور دونوں نہ ہونے پر تین سو پکسل پر۔ وہاں سے آپ نتیجے کا سائز مقرر کرتے ہیں اور سب کچھ ساتھ ساتھ بڑھتا گھٹتا ہے۔ ہر طرف آٹھ ہزار پکسل سے آگے کچھ بھی انکار کر دیا جاتا ہے، کیونکہ درکار یادداشت رقبے کے ساتھ بڑھتی ہے اور براؤزر کا ٹیب فائل بنانے کے بجائے بس ناکام ہو جائے گا۔

بدلنے میں کیا نہیں بچتا

  • پیمائے جانے کی صلاحیت وہی چیز ہے جو آپ چھوڑ رہے ہیں: SVG کا سارا مقصد یہی ہے۔ صرف وہاں بدلیں جہاں واقعی پکسلوں والی تصویر درکار ہو — کوئی سماجی جھلکی، ای میل، فیوی آئیکن، یا کوئی پلیٹ فارم جو ویکٹر قبول ہی نہ کرے۔
  • بیرونی حوالے لوڈ نہیں ہوتے: کسی اور جگہ رکھی گئی تصویر، اسٹائل شیٹ یا فونٹ کی طرف اشارہ کرنے والی SVG ان کے بغیر بنائی جاتی ہے۔ PNG میں نظر آنے کے لیے ہر چیز مارک اپ کے اندر ہونی چاہیے۔
  • فونٹ کو خاکوں میں بدلنا ضروری ہے: SVG میں عبارت اس بات پر منحصر ہے کہ بناتے وقت فونٹ دستیاب ہو۔ فائل بدلنے سے پہلے عبارت کو راستوں میں بدل دیں، ورنہ بدلے ہوئے حروف کی توقع رکھیں۔
  • اسی سائز پر یا اس سے بڑا برآمد کریں جس پر استعمال ہوگا: بعد میں بڑی کی گئی PNG نرم ہوتی ہے۔ دکھائے جانے والے سائز سے دو یا تین گنا برآمد کرنا زیادہ کثافت والی اسکرینوں کو بغیر دوبارہ بدلے سنبھال لیتا ہے۔

Shapes to pixels, and the size becomes a decision

An SVG describes shapes. A PNG describes pixels. Converting means choosing a size and having the browser draw the vector at it.

That is why the output size is a decision rather than a property of the file. The same SVG produces a sixteen-pixel favicon or a four-thousand-pixel banner with no loss either way, because the drawing happens from the shapes each time rather than by scaling an existing raster.

The [msm_tool slug="svg-to-png"] reads the dimensions from the SVG's own width and height, falls back to its viewBox when those are missing, and to 300 pixels when there is neither.

What silently does not survive

Two things go missing without any error, which makes them worth knowing in advance.

External references do not load. An SVG pointing at an image file, a stylesheet or a font hosted elsewhere is drawn without them. Everything must be inside the markup to appear in the PNG. A graphic that looks complete in your editor — which has access to those files — can convert with pieces missing.

Fonts must be outlined. Text in an SVG relies on the font being available while it is drawn. If it is not, the browser substitutes something else, and you get a PNG with the right words in the wrong typeface. Convert text to paths in your editor before converting the file. This is the commonest complaint about SVG conversion anywhere, and it is not specific to this tool.

Export larger than you need

A PNG enlarged afterwards is soft; there is no way back. Exporting at two or three times the display size covers high-density screens without a second conversion, and the only cost is file size.

For a logo used at 200 pixels wide, export at 400 or 600. For a favicon, generate each size from the SVG rather than downscaling one large PNG — small sizes drawn from the vector are noticeably sharper.

The size cap

Anything beyond 8,000 pixels a side is refused. The memory a canvas needs grows with the area, so doubling both dimensions quadruples it, and past a certain point a browser tab fails rather than producing a file.

Refusing is more useful than attempting and crashing. If you genuinely need something larger, that is a job for a desktop tool with access to real memory.

Keep the SVG as the master

The scalability is the thing you are giving up, and it is the entire point of the format. Convert only where a raster is genuinely required:

  • Social link previews, which mostly reject SVG.
  • Email, where SVG support is poor and inconsistent.
  • Favicons, at least for the ICO sizes.
  • Platforms and marketplaces that only accept raster uploads.
  • Anywhere the SVG would be inlined and you would rather not accept the security surface.

For anything on your own site, the SVG is usually both sharper and smaller. A logo as an SVG is a few kilobytes and perfect at every size; the same logo as a PNG set is several files and never quite right on an unusual display.

Transparency

PNG preserves it, so an SVG with no background produces a PNG with a transparent one. If you need a solid background, add a rectangle in the SVG before converting rather than relying on whatever ends up behind it — a transparent PNG on an unexpected dark background is a common surprise in email and on social platforms.

A quick checklist

  1. Text converted to paths.
  2. No external image, font or stylesheet references.
  3. A viewBox present, so the fallback sizing is sensible.
  4. Exported at two to three times the display size.
  5. Checked against both a light and a dark background if it is transparent.

اکثر پوچھے گئے سوالات

خاص طور پر SVG سے PNG کنورٹر کے بارے میں۔ اس زمرے سے متعلق عمومی سوالات کے جواب زمرے کے صفحے پر موجود ہیں۔

کم از کم اسی سائز پر جس پر دکھائی جائے گی، اور زیادہ کثافت والی اسکرینوں کے لیے اس سے دو یا تین گنا۔ بڑا کرنے کی قیمت صرف فائل کا حجم ہے؛ چھوٹا کرنے کو واپس نہیں کیا جا سکتا۔
SVG بناتے وقت وہ فونٹ دستیاب نہیں تھا۔ فائل بدلنے سے پہلے اپنے ایڈیٹر میں عبارت کو راستوں میں بدل دیں۔
اس نے تقریباً یقیناً کسی بیرونی چیز کا حوالہ دیا تھا — کوئی تصویر، اسٹائل شیٹ یا فونٹ۔ صرف وہی بنایا جاتا ہے جو مارک اپ کے اندر ہو۔
ہر طرف آٹھ ہزار پکسل سے زیادہ کچھ بھی انکار کر دیا جاتا ہے۔ درکار یادداشت رقبے کے ساتھ بڑھتی ہے، اور اس سے آگے براؤزر کا ٹیب فائل بنانے کے بجائے ناکام ہو جاتا ہے۔
صرف وہاں جہاں ویکٹر قبول نہ ہو۔ SVG کو اصل نسخے کے طور پر رکھیں — وہ ہر سائز پر صاف رہتی ہے اور عموماً چھوٹی فائل بھی ہوتی ہے۔

نئے ٹولز، خصوصیات اور کارکردگی بڑھانے کے مشوروں کی اطلاع پانے کے لیے سبسکرائب کریں۔