{"id":8310199,"date":"2025-09-04T11:12:56","date_gmt":"2025-09-04T08:12:56","guid":{"rendered":"https:\/\/elementor.com\/tools\/?p=8310199"},"modified":"2025-09-04T11:15:25","modified_gmt":"2025-09-04T08:15:25","slug":"html-embed-code-generator","status":"publish","type":"post","link":"https:\/\/elementor.com\/tools\/html-embed-code-generator\/","title":{"rendered":"HTML Embed Code Generator"},"content":{"rendered":"\t\t<div data-elementor-type=\"container\" data-elementor-id=\"8310197\" class=\"elementor elementor-8310197\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t<div class=\"elementor-element elementor-element-23691a2c e-flex e-con-boxed e-con e-parent\" data-id=\"23691a2c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-37c3711c elementor-widget elementor-widget-html\" data-id=\"37c3711c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\r\n    \/* --- Main App Container & Layout --- *\/\r\n    .html-viewer-app {\r\n        width: 100%;\r\n        max-width: 800px; \/* Adjusted for a single-panel tool *\/\r\n        margin: 0 auto;\r\n        padding: 40px 0 0;\r\n        background: transparent;\r\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;\r\n    }\r\n\r\n    .embed-generator-panel {\r\n        background: white;\r\n        border-radius: 8px;\r\n        border: 1.5px solid #EBEBEB;\r\n        box-shadow: 0 4px 15px rgba(0,0,0,0.08);\r\n        overflow: hidden;\r\n    }\r\n\r\n    .section-header {\r\n        background-color: #05047E;\r\n        color: white;\r\n        padding: 12px 20px;\r\n        font-weight: 500;\r\n        font-size: 1.125rem;\r\n        display: flex;\r\n        justify-content: space-between;\r\n        align-items: center;\r\n    }\r\n\r\n    .generator-body {\r\n        padding: 24px;\r\n        display: flex;\r\n        flex-direction: column;\r\n        gap: 20px;\r\n    }\r\n\r\n    \/* --- Form Controls & Inputs --- *\/\r\n    .controls-grid {\r\n        display: grid;\r\n        grid-template-columns: 1fr;\r\n        gap: 16px;\r\n    }\r\n\r\n    .form-group {\r\n        display: flex;\r\n        flex-direction: column;\r\n        gap: 8px;\r\n    }\r\n\r\n    .form-group label {\r\n        font-weight: 500;\r\n        color: #333;\r\n        font-size: 1rem;\r\n    }\r\n\r\n    .form-group input[type=\"text\"],\r\n    .form-group input[type=\"number\"] {\r\n        width: 100%;\r\n        padding: 10px 12px;\r\n        border: 1.5px solid #EBEBEB;\r\n        border-radius: 4px;\r\n        font-size: 1rem;\r\n        transition: border-color 0.2s, box-shadow 0.2s;\r\n    }\r\n\r\n    .form-group input:focus {\r\n        outline: none;\r\n        border-color: #05047E;\r\n        box-shadow: 0 0 0 2px rgba(5, 4, 126, 0.2);\r\n    }\r\n    \r\n    .dimension-inputs {\r\n        display: flex;\r\n        gap: 16px;\r\n    }\r\n\r\n    .dimension-inputs .form-group {\r\n        flex: 1;\r\n    }\r\n\r\n    .options-group {\r\n        display: flex;\r\n        flex-wrap: wrap;\r\n        gap: 16px;\r\n        align-items: center;\r\n        margin-top: 8px;\r\n    }\r\n\r\n    .checkbox-control {\r\n        display: flex;\r\n        align-items: center;\r\n        gap: 8px;\r\n        cursor: pointer;\r\n    }\r\n\r\n    .checkbox-control input[type=\"checkbox\"] {\r\n        width: 1.15em;\r\n        height: 1.15em;\r\n        accent-color: #05047E;\r\n    }\r\n\r\n    \/* --- Buttons --- *\/\r\n    .button-container {\r\n        display: flex;\r\n        gap: 12px;\r\n        align-items: center;\r\n        margin-top: 12px;\r\n        flex-wrap: wrap;\r\n    }\r\n\r\n    .format-btn {\r\n        background-color: #000;\r\n        color: white;\r\n        border: none;\r\n        padding: 12px 20px;\r\n        cursor: pointer;\r\n        font-size: 1.125rem;\r\n        font-weight: 500;\r\n        transition: background-color 0.2s;\r\n        min-width: 11rem;\r\n        text-align: center;\r\n        border-radius: 4px;\r\n    }\r\n\r\n    .format-btn:is(:hover, :focus, :focus-visible) {\r\n        background-color: #545454;\r\n    }\r\n\r\n    .reset-btn {\r\n        background: none;\r\n        border: none;\r\n        color: black;\r\n        text-decoration: underline;\r\n        font-size: 1rem;\r\n        cursor: pointer;\r\n        padding: 0;\r\n        transition: color 0.2s;\r\n    }\r\n\r\n    .reset-btn:is(:hover, :focus, :focus-visible) {\r\n        background: none;\r\n        color: #545454;\r\n    }\r\n\r\n    .copy-btn {\r\n        background-color: rgb(255, 255, 255);\r\n        color: black;\r\n        border: 1px solid #ddd;\r\n        padding: 6px 14px;\r\n        border-radius: 4px;\r\n        cursor: pointer;\r\n        font-size: 14px;\r\n        display: flex;\r\n        align-items: center;\r\n        gap: 8px;\r\n        transition: background-color 0.2s;\r\n        box-shadow: 0 0 10px rgba(0,0,0,0.1);\r\n    }\r\n\r\n    .copy-btn:is(:hover, :focus, :focus-visible) {\r\n        background-color: #f6f6f6 !important;\r\n    }\r\n\r\n    .copy-btn:disabled {\r\n        opacity: 0.6;\r\n        cursor: not-allowed;\r\n    }\r\n\r\n    \/* --- Output Area --- *\/\r\n    .output-container {\r\n        margin-top: 20px;\r\n        border-top: 1.5px solid #EBEBEB;\r\n        padding-top: 20px;\r\n    }\r\n\r\n    #generatedCodeOutput {\r\n        width: 100%;\r\n        min-height: 120px;\r\n        border: 1.5px solid #EBEBEB;\r\n        outline: none;\r\n        padding: 15px;\r\n        font-family: 'Courier New', monospace;\r\n        font-size: 13px;\r\n        line-height: 1.5;\r\n        background-color: #fdfdfd;\r\n        resize: vertical;\r\n        color: #333;\r\n        border-radius: 4px;\r\n    }\r\n\r\n    \/* --- Success Message (Toast) --- *\/\r\n    .success-message {\r\n        position: fixed;\r\n        bottom: 20px; \/* Changed from top to bottom *\/\r\n        right: 20px;\r\n        background-color: #28a745;\r\n        color: white;\r\n        padding: 12px 20px;\r\n        border-radius: 4px;\r\n        font-size: 14px;\r\n        opacity: 0;\r\n        transform: translateY(100%); \/* Changed from X to Y *\/\r\n        transition: all 0.3s ease;\r\n        z-index: 1000;\r\n        box-shadow: 0 4px 12px rgba(0,0,0,0.15);\r\n    }\r\n\r\n    .success-message.show {\r\n        opacity: 1;\r\n        transform: translateY(0);\r\n    }\r\n\r\n    @media (max-width: 768px) {\r\n        .dimension-inputs {\r\n            flex-direction: column;\r\n        }\r\n        .html-viewer-app {\r\n            padding: 20px 15px 0;\r\n        }\r\n        .generator-body {\r\n            padding: 16px;\r\n        }\r\n    }\r\n<\/style>\r\n\r\n<div class=\"html-viewer-app\">\r\n    <div class=\"embed-generator-panel\">\r\n        <div class=\"section-header\">\r\n            <span>HTML Embed Code Generator<\/span>\r\n        <\/div>\r\n        <div class=\"generator-body\">\r\n            \r\n            <!-- Input Controls -->\r\n            <div class=\"controls-grid\">\r\n                <div class=\"form-group\">\r\n                    <label for=\"embedUrl\">URL to Embed<\/label>\r\n                    <input type=\"text\" id=\"embedUrl\" placeholder=\"https:\/\/www.youtube.com\/embed\/...\">\r\n                <\/div>\r\n\r\n                <div class=\"dimension-inputs\">\r\n                    <div class=\"form-group\">\r\n                        <label for=\"embedWidth\">Width<\/label>\r\n                        <input type=\"text\" id=\"embedWidth\" value=\"560\" placeholder=\"e.g., 560 or 100%\">\r\n                    <\/div>\r\n                    <div class=\"form-group\">\r\n                        <label for=\"embedHeight\">Height<\/label>\r\n                        <input type=\"number\" id=\"embedHeight\" value=\"315\" placeholder=\"e.g., 315\">\r\n                    <\/div>\r\n                <\/div>\r\n\r\n                <div class=\"form-group\">\r\n                    <label>Options<\/label>\r\n                    <div class=\"options-group\">\r\n                        <label class=\"checkbox-control\">\r\n                            <input type=\"checkbox\" id=\"allowFullscreen\" checked>\r\n                            <span>Allow Fullscreen<\/span>\r\n                        <\/label>\r\n                        <label class=\"checkbox-control\">\r\n                            <input type=\"checkbox\" id=\"addLazyLoading\">\r\n                            <span>Lazy Loading<\/span>\r\n                        <\/label>\r\n                        <label class=\"checkbox-control\">\r\n                            <input type=\"checkbox\" id=\"removeBorder\">\r\n                            <span>Remove Frame Border<\/span>\r\n                        <\/label>\r\n                    <\/div>\r\n                <\/div>\r\n            <\/div>\r\n\r\n            <!-- Action Buttons -->\r\n            <div class=\"button-container\">\r\n                <button id=\"generateBtn\" class=\"format-btn\">Generate Code<\/button>\r\n                <button id=\"resetBtn\" class=\"reset-btn\">Reset<\/button>\r\n            <\/div>\r\n\r\n            <!-- Output Area -->\r\n            <div class=\"output-container\">\r\n                <div class=\"form-group\">\r\n                    <label for=\"generatedCodeOutput\">Generated Embed Code<\/label>\r\n                    <textarea id=\"generatedCodeOutput\" readonly placeholder=\"Your iframe code will appear here...\"><\/textarea>\r\n                <\/div>\r\n                <div class=\"copy-btn-container\" style=\"text-align: right; margin-top: 12px;\">\r\n                    <button id=\"copyCodeBtn\" class=\"copy-btn\" disabled>\r\n                        <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" viewBox=\"0 0 16 16\">\r\n                            <path d=\"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z\"\/>\r\n                            <path d=\"M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zM-1 7a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1h-15A.5.5 0 0 1-1 7z\"\/>\r\n                            <path d=\"M2 1.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zM2 1.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zM4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z\"\/>\r\n                            <path d=\"M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zM-1 7a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1h-15A.5.5 0 0 1-1 7zM4.5 0.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1h2zM4.5 15.5a.5.5 0 0 1 0-1h-2a.5.5 0 0 1 0 1h2z\"\/>\r\n                            <path d=\"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z\"\/><path d=\"M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zM-1 7a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1h-15A.5.5 0 0 1-1 7zM4.5 0.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1h2zM4.5 15.5a.5.5 0 0 1 0-1h-2a.5.5 0 0 1 0 1h2zM13 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5zm-11 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5z\"\/>\r\n                            <path d=\"M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0z\"\/><path d=\"M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0zM12 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5zM2 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5z\"\/>\r\n                        <\/svg>\r\n                        <span id=\"copyBtnText\">Copy Code<\/span>\r\n                    <\/button>\r\n                <\/div>\r\n            <\/div>\r\n\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <!-- Success Message Element -->\r\n    <div id=\"successMessage\" class=\"success-message\">Code copied to clipboard!<\/div>\r\n<\/div>\r\n\r\n<script>\r\ndocument.addEventListener('DOMContentLoaded', () => {\r\n    \/\/ --- DOM Element References ---\r\n    const embedUrl = document.getElementById('embedUrl');\r\n    const embedWidth = document.getElementById('embedWidth');\r\n    const embedHeight = document.getElementById('embedHeight');\r\n    const allowFullscreen = document.getElementById('allowFullscreen');\r\n    const addLazyLoading = document.getElementById('addLazyLoading');\r\n    const removeBorder = document.getElementById('removeBorder');\r\n    const generateBtn = document.getElementById('generateBtn');\r\n    const resetBtn = document.getElementById('resetBtn');\r\n    const copyCodeBtn = document.getElementById('copyCodeBtn');\r\n    const copyBtnText = document.getElementById('copyBtnText');\r\n    const generatedCodeOutput = document.getElementById('generatedCodeOutput');\r\n    const successMessage = document.getElementById('successMessage');\r\n\r\n    \/\/ --- Core Functions ---\r\n\r\n    const generateEmbedCode = () => {\r\n        const url = embedUrl.value.trim();\r\n        if (!url) {\r\n            generatedCodeOutput.value = \"Please enter a URL to generate the embed code.\";\r\n            copyCodeBtn.disabled = true;\r\n            return;\r\n        }\r\n\r\n        const width = embedWidth.value || '560';\r\n        const height = embedHeight.value || '315';\r\n        \r\n        let attributes = '';\r\n        attributes += ` width=\"${width}\"`;\r\n        attributes += ` height=\"${height}\"`;\r\n        attributes += ' style=\"border:0;\"'; \/\/ A common default style attribute\r\n        \r\n        if (allowFullscreen.checked) {\r\n            attributes += ' allowfullscreen';\r\n        }\r\n\r\n        if (addLazyLoading.checked) {\r\n            attributes += ' loading=\"lazy\"';\r\n        }\r\n\r\n        if (removeBorder.checked) {\r\n            attributes += ' frameborder=\"0\"';\r\n        }\r\n        \r\n        \/\/ Example: Add referrerpolicy for privacy\r\n        attributes += ' referrerpolicy=\"strict-origin-when-cross-origin\"';\r\n\r\n        const embedCode = `<iframe src=\"${url}\"${attributes}><\/iframe>`;\r\n        \r\n        generatedCodeOutput.value = embedCode;\r\n        copyCodeBtn.disabled = false;\r\n    };\r\n\r\n    const copyGeneratedCode = () => {\r\n        const codeToCopy = generatedCodeOutput.value;\r\n        if (!codeToCopy || copyCodeBtn.disabled) {\r\n            return;\r\n        }\r\n\r\n        navigator.clipboard.writeText(codeToCopy).then(() => {\r\n            \/\/ --- Show Success Feedback ---\r\n            copyBtnText.textContent = 'Copied!';\r\n            copyCodeBtn.style.backgroundColor = '#d4edda'; \/\/ Light green feedback\r\n            showSuccessMessage();\r\n            \r\n            setTimeout(() => {\r\n                copyBtnText.textContent = 'Copy Code';\r\n                copyCodeBtn.style.backgroundColor = ''; \/\/ Revert color\r\n            }, 2000);\r\n\r\n        }).catch(err => {\r\n            console.error('Failed to copy text: ', err);\r\n            alert('Failed to copy code. Please copy it manually.');\r\n        });\r\n    };\r\n\r\n    const resetForm = () => {\r\n        embedUrl.value = '';\r\n        embedWidth.value = '560';\r\n        embedHeight.value = '315';\r\n        allowFullscreen.checked = true;\r\n        addLazyLoading.checked = false;\r\n        removeBorder.checked = false;\r\n        generatedCodeOutput.value = 'Your iframe code will appear here...';\r\n        copyCodeBtn.disabled = true;\r\n        embedUrl.focus();\r\n    };\r\n\r\n    const showSuccessMessage = () => {\r\n        successMessage.classList.add('show');\r\n        setTimeout(() => {\r\n            successMessage.classList.remove('show');\r\n        }, 3000);\r\n    };\r\n\r\n    \/\/ --- Event Listeners ---\r\n    generateBtn.addEventListener('click', generateEmbedCode);\r\n    copyCodeBtn.addEventListener('click', copyGeneratedCode);\r\n    resetBtn.addEventListener('click', resetForm);\r\n});\r\n<\/script>\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[22],"tags":[21],"class_list":["post-8310199","post","type-post","status-publish","format-standard","hentry","category-tools","tag-html-css-tools"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HTML Embed Code Generator<\/title>\n<meta name=\"description\" content=\"Generate HTML embed codes easily for YouTube, maps, social media &amp; more with our free HTML embed code generator. Perfect for Elementor websites.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elementor.com\/tools\/html-embed-code-generator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML Embed Code Generator\" \/>\n<meta property=\"og:description\" content=\"Generate HTML embed codes easily for YouTube, maps, social media &amp; more with our free HTML embed code generator. Perfect for Elementor websites.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elementor.com\/tools\/html-embed-code-generator\/\" \/>\n<meta property=\"og:site_name\" content=\"Tools\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-04T08:12:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-04T08:15:25+00:00\" \/>\n<meta name=\"author\" content=\"liz@148.red\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"liz@148.red\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/elementor.com\/tools\/html-embed-code-generator\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/tools\/html-embed-code-generator\/\"},\"author\":{\"name\":\"liz@148.red\",\"@id\":\"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac\"},\"headline\":\"HTML Embed Code Generator\",\"datePublished\":\"2025-09-04T08:12:56+00:00\",\"dateModified\":\"2025-09-04T08:15:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/elementor.com\/tools\/html-embed-code-generator\/\"},\"wordCount\":6,\"keywords\":[\"Html-Css-tools\"],\"articleSection\":[\"tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/elementor.com\/tools\/html-embed-code-generator\/\",\"url\":\"https:\/\/elementor.com\/tools\/html-embed-code-generator\/\",\"name\":\"HTML Embed Code Generator\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/tools\/#website\"},\"datePublished\":\"2025-09-04T08:12:56+00:00\",\"dateModified\":\"2025-09-04T08:15:25+00:00\",\"author\":{\"@id\":\"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac\"},\"description\":\"Generate HTML embed codes easily for YouTube, maps, social media & more with our free HTML embed code generator. Perfect for Elementor websites.\",\"breadcrumb\":{\"@id\":\"https:\/\/elementor.com\/tools\/html-embed-code-generator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/elementor.com\/tools\/html-embed-code-generator\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/elementor.com\/tools\/html-embed-code-generator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/elementor.com\/tools\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Embed Code Generator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/elementor.com\/tools\/#website\",\"url\":\"https:\/\/elementor.com\/tools\/\",\"name\":\"Tools\",\"description\":\"Just another Elementor hosted website ;)\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/elementor.com\/tools\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac\",\"name\":\"liz@148.red\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g\",\"caption\":\"liz@148.red\"},\"url\":\"https:\/\/elementor.com\/tools\/author\/liz148-red\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML Embed Code Generator","description":"Generate HTML embed codes easily for YouTube, maps, social media & more with our free HTML embed code generator. Perfect for Elementor websites.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elementor.com\/tools\/html-embed-code-generator\/","og_locale":"en_US","og_type":"article","og_title":"HTML Embed Code Generator","og_description":"Generate HTML embed codes easily for YouTube, maps, social media & more with our free HTML embed code generator. Perfect for Elementor websites.","og_url":"https:\/\/elementor.com\/tools\/html-embed-code-generator\/","og_site_name":"Tools","article_published_time":"2025-09-04T08:12:56+00:00","article_modified_time":"2025-09-04T08:15:25+00:00","author":"liz@148.red","twitter_card":"summary_large_image","twitter_misc":{"Written by":"liz@148.red","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elementor.com\/tools\/html-embed-code-generator\/#article","isPartOf":{"@id":"https:\/\/elementor.com\/tools\/html-embed-code-generator\/"},"author":{"name":"liz@148.red","@id":"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac"},"headline":"HTML Embed Code Generator","datePublished":"2025-09-04T08:12:56+00:00","dateModified":"2025-09-04T08:15:25+00:00","mainEntityOfPage":{"@id":"https:\/\/elementor.com\/tools\/html-embed-code-generator\/"},"wordCount":6,"keywords":["Html-Css-tools"],"articleSection":["tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elementor.com\/tools\/html-embed-code-generator\/","url":"https:\/\/elementor.com\/tools\/html-embed-code-generator\/","name":"HTML Embed Code Generator","isPartOf":{"@id":"https:\/\/elementor.com\/tools\/#website"},"datePublished":"2025-09-04T08:12:56+00:00","dateModified":"2025-09-04T08:15:25+00:00","author":{"@id":"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac"},"description":"Generate HTML embed codes easily for YouTube, maps, social media & more with our free HTML embed code generator. Perfect for Elementor websites.","breadcrumb":{"@id":"https:\/\/elementor.com\/tools\/html-embed-code-generator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elementor.com\/tools\/html-embed-code-generator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elementor.com\/tools\/html-embed-code-generator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elementor.com\/tools\/"},{"@type":"ListItem","position":2,"name":"HTML Embed Code Generator"}]},{"@type":"WebSite","@id":"https:\/\/elementor.com\/tools\/#website","url":"https:\/\/elementor.com\/tools\/","name":"Tools","description":"Just another Elementor hosted website ;)","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elementor.com\/tools\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac","name":"liz@148.red","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g","caption":"liz@148.red"},"url":"https:\/\/elementor.com\/tools\/author\/liz148-red\/"}]}},"_links":{"self":[{"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/posts\/8310199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/comments?post=8310199"}],"version-history":[{"count":1,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/posts\/8310199\/revisions"}],"predecessor-version":[{"id":8310201,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/posts\/8310199\/revisions\/8310201"}],"wp:attachment":[{"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/media?parent=8310199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/categories?post=8310199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/tags?post=8310199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}