Skip to main content

Resize Image to 512×512 Pixels — Free Online

512×512 is the native training resolution for Stable Diffusion 1.5, the canonical icon size for the iOS App Store and Google Play (`icon-512.png`), the recommended Discord server icon, and a standard NFT mint size on OpenSea and Foundation. Get the dimensions wrong by a single pixel and the upload is rejected or the image is silently stretched. This tool snaps any JPG, PNG, or WebP to an exact 512×512 square in your browser using the Canvas API's bilinear scaler — the same engine Photoshop uses. Pick **Crop** to keep maximum sharpness with a center-weighted square crop, or **Fit** to preserve the entire frame with transparent (PNG/WebP) or white (JPG) letterboxing. Because everything runs locally, you can resize unreleased AI training data, private avatars, or pre-release product icons without sending a byte to a third-party server. The output is a clean 512×512 file with no watermark, no signup, and no daily cap. Need a different square size next? Try resize image to 1024×1024 for SDXL or high-res icons, or compress image to 100KB to slim the result before upload.

How to resize image to 512×512 pixels

  1. Drop your JPG, PNG, or WebP onto the tool above — it loads instantly with no upload.
  2. Type **512** in both the Width and Height fields (or unlock aspect ratio if it is locked).
  3. Pick **Crop** for sharpness or **Fit** to preserve the whole image with padding.
  4. Click **Resize**, preview the 512×512 square, and download — output is a clean PNG, JPG, or WebP.

Common use cases

  • Prepare training images for Stable Diffusion 1.5 (native 512×512) or LoRA fine-tunes
  • Generate `icon-512.png` for iOS, Android, Chrome and PWA manifest files
  • Resize NFT artwork for OpenSea, Foundation, and Magic Eden mint pages
  • Set a Discord server icon (recommended 512×512) without the in-app cropper
  • Make square avatars for Twitter/X, Reddit, GitHub and Slack at a crisp 512×512

Frequently asked questions

Why exactly 512×512 instead of 1024×1024?

512×512 is the original Stable Diffusion 1.5 training resolution — using it avoids the prompt-drift artifacts that appear when SD 1.5 generates at off-native sizes. It is also the default app-icon master in Xcode, Android Studio, and PWA manifests. Use [LINK:1024×1024|/resize-image-to-1024x1024] only for SDXL or high-DPI icons.

Crop or Fit — which should I pick for AI training images?

Crop. Stable Diffusion and LoRA training expect the subject to fill the frame; letterboxed bars confuse the model and bleed into generations. Use Fit only for icons or avatars where the whole image must remain visible.

Will my image look pixelated at 512×512?

Downscaling from any source above 512px is effectively lossless — extra pixels are averaged into the output. Upscaling from a smaller source (e.g. 256×256) cannot invent detail; expect mild softness. Start from at least 512px on the shorter edge for a crisp result.

Does it preserve PNG transparency for app icons?

Yes. Export to PNG or WebP and the alpha channel is preserved unchanged — essential for iOS `icon-512.png`, Android adaptive icons, and PWA manifest entries with rounded corners or transparent backgrounds.

Is it safe to resize private avatars or pre-release AI training data here?

Yes — the tool uses the browser Canvas API. Your image is read into memory, resized, and written back to a download URL. No upload, no logging, no server round-trip. You can verify by opening DevTools → Network and confirming zero outbound requests after the page loads.

Can I batch-resize a folder of images to 512×512?

For one-at-a-time work, this tool is fastest. For folders, use the [LINK:Image Batch Resizer|/tool/image-batch-resizer] — drop dozens of files, set 512×512 once, and download a single ZIP. Same local processing, same privacy.