<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sumair Ali</title>
    <description>The latest articles on DEV Community by Sumair Ali (@sumair_ali_aa28be5317ec4a).</description>
    <link>https://dev.to/sumair_ali_aa28be5317ec4a</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4241643%2Fb2b26b36-7635-4057-b0fa-7ef905a30c14.png</url>
      <title>DEV Community: Sumair Ali</title>
      <link>https://dev.to/sumair_ali_aa28be5317ec4a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sumair_ali_aa28be5317ec4a"/>
    <language>en</language>
    <item>
      <title>Social Media Image Sizes in 2026: A Quick Cheat Sheet for Instagram, Facebook and YouTube</title>
      <dc:creator>Sumair Ali</dc:creator>
      <pubDate>Thu, 12 Nov 2026 18:59:56 +0000</pubDate>
      <link>https://dev.to/sumair_ali_aa28be5317ec4a/social-media-image-sizes-in-2026-a-quick-cheat-sheet-for-instagram-facebook-and-youtube-g44</link>
      <guid>https://dev.to/sumair_ali_aa28be5317ec4a/social-media-image-sizes-in-2026-a-quick-cheat-sheet-for-instagram-facebook-and-youtube-g44</guid>
      <description>&lt;p&gt;Every platform wants a different image size, and uploading the wrong one means blurry pictures, awkward crops, or cut-off text. This cheat sheet collects the sizes you need most, plus a simple way to resize images without installing anything.&lt;/p&gt;

&lt;p&gt;If you just want to resize right now, you can use this &lt;a href="https://invitationbrusselsfurniture.online/resizer/" rel="noopener noreferrer"&gt;free browser-based image resize&lt;/a&gt; that has all of these presets built in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Instagram
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Size (px)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Square post&lt;/td&gt;
&lt;td&gt;1080 × 1080&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Portrait post&lt;/td&gt;
&lt;td&gt;1080 × 1350&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Story / Reel&lt;/td&gt;
&lt;td&gt;1080 × 1920&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Square works everywhere, but portrait takes up more screen space in the feed, which helps your post stand out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Facebook
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Size (px)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Shared post image&lt;/td&gt;
&lt;td&gt;1200 × 630&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cover photo&lt;/td&gt;
&lt;td&gt;820 × 312&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keep important text and faces away from the edges. Cover photos are cropped differently on mobile and desktop.&lt;/p&gt;

&lt;h2&gt;
  
  
  YouTube
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Size (px)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Thumbnail&lt;/td&gt;
&lt;td&gt;1280 × 720&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Channel banner&lt;/td&gt;
&lt;td&gt;2560 × 1440&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Thumbnails use a 16:9 ratio. Keep the file under 2 MB and use large, readable text because thumbnails are often tiny on mobile.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other common sizes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LinkedIn post image:&lt;/strong&gt; 1200 × 627&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X (Twitter) post image:&lt;/strong&gt; 1600 × 900&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Platforms change these recommendations from time to time, so check the official help page if something looks off.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to resize without losing quality
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Keep the aspect ratio locked.&lt;/strong&gt; Changing width and height separately stretches the picture.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Avoid enlarging small images.&lt;/strong&gt; Scaling down stays sharp, scaling up looks soft.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start from the largest original.&lt;/strong&gt; Resize from the source file, not from an already-compressed copy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose the right format.&lt;/strong&gt; JPG for photos, PNG for graphics with text or transparency.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can do all of this in the &lt;a href="https://invitationbrusselsfurniture.online/resizer/" rel="noopener noreferrer"&gt;PixelKit image resizer&lt;/a&gt;: upload your image, pick a preset like Instagram Post or YouTube Thumbnail, click Apply, and download the result.&lt;/p&gt;

&lt;h2&gt;
  
  
  A note for developers: it runs in the browser
&lt;/h2&gt;

&lt;p&gt;For the curious, tools like this don't need a server. The browser's Canvas API can resize images locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;resizeImage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;canvas&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"canvas"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;canvas&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;canvas&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;height&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;canvas&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getContext&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"2d"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;imageSmoothingQuality&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"high"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;drawImage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;canvas&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toDataURL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"image/jpeg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.92&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because everything happens on the user's device, the image is never uploaded. That's better for privacy and faster too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Bookmark this list, and next time you post, set the right size first. If you want a quick way to do it, try the &lt;a href="https://invitationbrusselsfurniture.online/resizer/" rel="noopener noreferrer"&gt;free image resizer at PixelKit&lt;/a&gt;. It also has a compressor, converter and cropper if you need them.&lt;/p&gt;

&lt;p&gt;What image size do you always forget? Let me know in the comments.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
