Responsive image markup builder

Generate picture and srcset markup from an image naming pattern.

Processed on your device

Input

Open a local UTF-8 text file5 MiB maximum. The file opens in the text box above.Or drop a file here.

Options

Options
List the image widths you provide, in pixels, separated by commas. For example: 400,800,1200.
Describe how wide the image appears on the page. For example, 100vw means the full viewport width; this helps the browser choose a source.

How to use this tool

  1. Generate picture and srcset markup from an image naming pattern.
  2. Adjust the labelled settings, then run the tool. Copy the result or download it as a file.

Things to know

  • Processing is local. Supplied code and network requests are never executed. Input and text settings are limited to 5 MiB combined; text settings alone are limited to 1 MiB.
  • This produces markup. Use the image resizer to create the actual files.
  • Image pattern: 8 KiB; alternative text: 16 KiB; sizes/width settings: 4 KiB each. At most 100 distinct widths from 1 to 16,384 pixels. This emits markup without loading images.

You might also need

More in web development