Missing alt text
Empty alt is bad for accessibility.
Fix: Always include descriptive alt text on line 2.
header • up to 320x100 / 728x90
Generate an <img> tag with src, alt, width, height, loading="lazy", and decoding="async" best practices
Output will appear here...
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
HTML (HyperText Markup Language) is the core markup language for web pages, defining structure and content that browsers render.
HTML Image Tag Generator builds an `<img>` tag with src, alt, optional width and height, plus `loading="lazy"` and `decoding="async"` to match modern performance best practices.
It's a quick helper for blogs, CMS fields, email templates, and static sites where you want correct attributes every time.
https://cdn.example.com/hero.jpg Product hero 1200 630
<img src="https://cdn.example.com/hero.jpg" alt="Product hero" width="1200" height="630" loading="lazy" decoding="async" />
Empty alt is bad for accessibility.
Fix: Always include descriptive alt text on line 2.
Missing dimensions can increase CLS.
Fix: Provide width and height on lines 3 and 4.
Yes — loading="lazy" and decoding="async" are included automatically.
Optional, but recommended to reduce CLS.
Yes — quotes are escaped to prevent broken HTML.
Add them after copying the output.
No — the generator is client-side.
Pair with image tools, base64 encoder, and HTML formatter. You can also browse the full HTML Generators category for more options.
Encode JPEG, PNG, GIF, WebP, or SVG images into Base64 data URLs for inline CSS and HTML
Convert local image files into Base64 text ready to paste into email, JSON payloads, or data URLs
Format and beautify HTML markup online with clean indentation and proper tag nesting. Paste HTML and get readable, copy-ready output in seconds.
Build a safe anchor tag with href, optional target="_blank", and rel="noopener noreferrer"
Generate title, description, keywords, canonical, OpenGraph, and Twitter meta tags from simple key:value pairs
Minify SVG markup by removing comments, extra whitespace, and redundant decimal precision
Build an accessible HTML <form> with labelled inputs, selects, textareas, and a submit button
Turn a plain text list into ordered <ol> or unordered <ul> HTML with one item per line
Generate a ready-to-use mailto: anchor with subject, cc, bcc, and body parameters URL-encoded
Convert CSV, TSV, or pipe-separated data into a clean HTML <table> with optional <thead>
Generate lazy-loading HTML image tags with srcset, sizes, decoding, fetch priority, and accessible alt text attributes.
Encode or decode HTML entities