HTML Iframe Generator
Generate an <iframe> — set the source URL, title, size, and loading/referrer/fullscreen options, then copy the ready-to-use HTML. Free, instant, no AI involved.
Input
Required for accessibility; a sensible default is used if left blank.
Settings
Add custom CSS classes to the element. Separate multiple classes with spaces.
Output
Guides
Build a ready-to-paste <iframe> — set the source URL, an accessible title, size, and loading/referrer/fullscreen options, then copy the generated HTML.
Runs entirely in your browser: no AI call, no credits, no network round-trip. The output updates instantly as you type.
How to use it
- Set the Source URL (required) and a Title — every iframe needs one for accessibility; leave it blank and "Embedded content" is used.
- Adjust loading behavior, referrer policy, fullscreen permission, and size in Settings.
- Copy or download the generated HTML.
Why is there no live preview?
The output is real, unsanitized markup, and embedding an arbitrary third-party URL directly on this page isn't safe. Paste the code into your own page to see it in context.
Use it from code
From 3 credits per callREST API
curl -X POST https://api.iotools.cloud/v1/tool/html-generator/iframe \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customSource": "https://example.com",
"customTitle": "",
"customAllowFullscreen": "",
"customLoading": "eager",
"customReferrerPolicy": "no-referrer",
"customHeight": "",
"customWidth": "",
"customClasses": ""
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `html-generator__iframe` tool (HTML Iframe Generator) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.