📃 HTML to PDF Converter

A premium in-browser code editor with live device preview — convert your HTML into a polished, downloadable PDF with page settings, header/footer, watermark, metadata and clickable links.

⌨️ Ctrl+S=Convert · Ctrl+P=Print · Ctrl+O=Open · Ctrl+N=New · Ctrl+F=Find · Ctrl+H=Replace · Ctrl+Shift+P=Fullscreen Preview

🔒 Everything runs locally in your browser. Your HTML, CSS and JS are never uploaded anywhere.

📤 Drag & drop an .html/.htm/.txt/.md file here or click to choose

Optional — added as an embedded <style> block before conversion.
Optional — added as an embedded <script> block, run before capture (toggle below).

🕘 Recent Files

📐 Page Setup

"DPI" labels above describe the render scale factor used to capture your HTML — a higher scale produces sharper output but is not a literal embedded DPI metadata value.

🏷️ Header

🏷️ Footer

💧 Watermark

🗂️ Document Metadata

🔒 Security

Honest note: genuine PDF password protection/encryption requires cryptographic capabilities that no reliable, well-maintained client-side-only library provides. Rather than fake a security feature that wouldn't actually protect your file, this tool does not offer PDF passwords — please use a trusted desktop PDF tool if you need real encryption.

🔗 Clickable Hyperlinks

📑 Clickable Table of Contents

Honest note: this generates a real, clickable in-PDF table of contents page linking to each heading — it is not the same as a native Acrobat "outline/bookmarks" sidebar panel, which no free client-side library can reliably produce.

▦ QR Code / Barcode

📑 Templates

📥 Batch Conversion

Select multiple .html files (or a .zip of .html files) — each is converted and all PDFs are bundled into one .zip, or optionally merged into a single PDF.
100%
Preview

📤 Export

SVG export wraps the rendered image inside a valid SVG container (a standard, universally supported technique) — it is a raster snapshot, not editable vector paths, since arbitrary HTML/CSS cannot be losslessly converted to true vector SVG.

📤 Share

Share buttons share this tool's page link — generated PDFs are local files on your device and aren't hosted anywhere to share directly.

1. Related Tools

2. About This Tool | इस टूल के बारे में

यह HTML to PDF Converter एक प्रीमियम, ब्राउज़र-आधारित editor है जो सिंटैक्स-हाइलाइटिंग, लाइव डिवाइस प्रीव्यू, और पेज सेटिंग्स के साथ आपकी HTML को एक पॉलिश्ड, डाउनलोड करने योग्य PDF में बदलता है। | This HTML to PDF Converter is a premium, browser-based editor with syntax highlighting, live device preview, and page settings that turns your HTML into a polished, downloadable PDF.

आप HTML, CSS और JavaScript को अलग-अलग टैब में लिख या पेस्ट कर सकते हैं, .html/.htm/.txt/.md फ़ाइल अपलोड कर सकते हैं, या 12 तैयार टेम्पलेट्स (Invoice, Resume, Certificate, आदि) में से किसी एक से शुरू कर सकते हैं। | You can write or paste HTML, CSS and JavaScript in separate tabs, upload an .html/.htm/.txt/.md file, or start from one of 12 ready-made templates (Invoice, Resume, Certificate, and more).

यह टूल आपकी HTML को असली browser rendering engine का उपयोग करके प्रस्तुत करता है, फिर उसे capture करके पेज साइज़, मार्जिन, हेडर/फुटर, वॉटरमार्क और मेटाडेटा के साथ एक PDF में जोड़ता है। | This tool renders your HTML using a real browser rendering engine, then captures it and assembles a PDF with your chosen page size, margins, header/footer, watermark and metadata.

लिंक (http/https/mailto/tel) असली PDF में क्लिक करने योग्य बनाए जा सकते हैं, और हेडिंग्स से एक क्लिक करने योग्य Table of Contents पेज भी बनाया जा सकता है — दोनों वास्तव में PDF के भीतर काम करते हैं, कोई नकली सुविधा नहीं। | Links (http/https/mailto/tel) can be made genuinely clickable in the resulting PDF, and a clickable Table of Contents page can be generated from your headings — both actually work inside the PDF, not a fake feature.

महत्वपूर्ण रूप से ईमानदार सीमाएँ: यह टूल असली PDF पासवर्ड सुरक्षा या Acrobat-शैली की देशी outline/bookmarks पैनल का दावा नहीं करता, क्योंकि कोई विश्वसनीय मुफ़्त क्लाइंट-साइड लाइब्रेरी यह विश्वसनीय ढंग से नहीं करती — नकली सुरक्षा सुविधा देने के बजाय, यह ईमानदारी से इसे छोड़ देता है। | Important honest limitations: this tool does not claim real PDF password protection or a native Acrobat-style outline/bookmarks panel, since no reliable free client-side library provides these — rather than fake a security feature, it honestly omits it.

पूरा रूपांतरण आपके ब्राउज़र में स्थानीय रूप से होता है — आपकी HTML, CSS, JS, चित्र या सेटिंग्स कभी किसी सर्वर पर अपलोड नहीं होतीं। | The entire conversion happens locally in your browser — your HTML, CSS, JS, images or settings are never uploaded to any server.

3. Frequently Asked Questions | अक्सर पूछे जाने वाले प्रश्न

Q. Does this tool upload my HTML to a server? | क्या यह टूल मेरी HTML को सर्वर पर अपलोड करता है?
No — every conversion happens entirely inside your browser. | नहीं — पूरा रूपांतरण आपके ब्राउज़र के भीतर ही होता है।
Q. Can this tool add real PDF password protection? | क्या यह टूल असली PDF पासवर्ड सुरक्षा जोड़ सकता है?
No — no reliable free client-side library provides genuine PDF encryption; rather than fake it, this feature is honestly omitted. | नहीं — कोई विश्वसनीय मुफ़्त क्लाइंट-साइड लाइब्रेरी असली PDF encryption प्रदान नहीं करती; नकली दिखाने के बजाय इसे ईमानदारी से छोड़ा गया है।
Q. Does the Table of Contents use native Acrobat bookmarks? | क्या Table of Contents native Acrobat bookmarks का उपयोग करता है?
No — it is a real, clickable in-PDF page linking to each heading, not the Acrobat sidebar outline panel. | नहीं — यह एक असली, क्लिक करने योग्य in-PDF पेज है जो हर हेडिंग से जुड़ता है, Acrobat साइडबार outline पैनल नहीं।
Q. Are hyperlinks really clickable in the exported PDF? | क्या निर्यातित PDF में hyperlinks वास्तव में क्लिक करने योग्य हैं?
Yes — http/https/mailto/tel links are mapped from their rendered position to real clickable PDF link annotations. | हाँ — http/https/mailto/tel लिंक्स को उनकी rendered स्थिति से असली क्लिक करने योग्य PDF link annotations में मैप किया जाता है।
Q. What page sizes are supported? | कौन से पेज साइज़ समर्थित हैं?
A3, A4, A5, Letter, Legal, Executive, and a Custom size in points. | A3, A4, A5, Letter, Legal, Executive, और points में एक Custom साइज़।
Q. What do the DPI labels on Render Quality mean? | Render Quality पर DPI लेबल का क्या मतलब है?
They describe the capture scale factor, not a literal embedded DPI value — higher scale means sharper output. | ये capture scale factor को दर्शाते हैं, कोई शाब्दिक embedded DPI value नहीं — ज़्यादा scale का मतलब है तेज़ आउटपुट।
Q. Can I add a header and footer? | क्या मैं header और footer जोड़ सकता हूँ?
Yes — with tokens for page number, total pages, date, time and title, plus alignment and an optional logo. | हाँ — page number, total pages, date, time और title के tokens के साथ, साथ ही alignment और वैकल्पिक logo।
Q. Can I add a watermark? | क्या मैं watermark जोड़ सकता हूँ?
Yes — a text or image watermark with adjustable opacity, rotation, position and font size. | हाँ — समायोज्य opacity, rotation, position और font size के साथ एक text या image watermark।
Q. Can I set document metadata like title and author? | क्या मैं title और author जैसा document metadata सेट कर सकता हूँ?
Yes — title, author, subject, keywords, creator and language are written into the PDF properties. | हाँ — title, author, subject, keywords, creator और language PDF properties में लिखे जाते हैं।
Q. What image/export formats are available? | कौन से image/export फ़ॉर्मेट उपलब्ध हैं?
PDF, PNG, JPG, WebP, a raster-in-SVG-wrapper export, and browser Print. | PDF, PNG, JPG, WebP, एक raster-in-SVG-wrapper export, और browser Print।
Q. Is the SVG export a true vector file? | क्या SVG export एक असली vector फ़ाइल है?
No — it embeds the rendered raster image inside a valid SVG wrapper; arbitrary HTML/CSS cannot be losslessly converted to vector paths. | नहीं — यह rendered raster image को एक valid SVG wrapper के भीतर embed करता है; मनमाना HTML/CSS को बिना नुकसान के vector paths में नहीं बदला जा सकता।
Q. Can I write separate CSS and JavaScript? | क्या मैं अलग CSS और JavaScript लिख सकता हूँ?
Yes — separate tabs for CSS and JavaScript are embedded into the document before conversion. | हाँ — CSS और JavaScript के लिए अलग टैब रूपांतरण से पहले document में embed किए जाते हैं।
Q. Can I disable JavaScript for the preview/PDF? | क्या मैं preview/PDF के लिए JavaScript बंद कर सकता हूँ?
Yes — the Enable JavaScript toggle controls whether your script tab runs during preview and capture. | हाँ — Enable JavaScript toggle नियंत्रित करता है कि आपका script टैब preview और capture के दौरान चलता है या नहीं।
Q. Does the editor have syntax highlighting? | क्या editor में syntax highlighting है?
Yes — a full CodeMirror-based editor with line numbers, code folding, bracket matching and auto-closing tags. | हाँ — line numbers, code folding, bracket matching और auto-closing tags के साथ एक पूर्ण CodeMirror-आधारित editor।
Q. Can I beautify or minify my code? | क्या मैं अपना code beautify या minify कर सकता हूँ?
Yes — Beautify formats your HTML nicely, and Minify strips whitespace/comments to shrink it. | हाँ — Beautify आपकी HTML को अच्छी तरह format करता है, और Minify whitespace/comments हटाकर इसे छोटा करता है।
Q. Is the JavaScript minifier as thorough as a real bundler? | क्या JavaScript minifier एक असली bundler जितना गहन है?
No — it is a conservative minifier that only strips block comments and blank lines, to avoid corrupting strings, regex or URLs. | नहीं — यह एक conservative minifier है जो केवल block comments और खाली लाइनें हटाता है, ताकि strings, regex या URLs खराब न हों।
Q. Does it check for accessibility issues? | क्या यह accessibility issues जाँचता है?
Yes — a best-effort checker flags missing alt text, empty links, skipped heading levels and unlabeled inputs. | हाँ — एक best-effort checker missing alt text, खाली links, छूटे हुए heading levels और unlabeled inputs को फ्लैग करता है।
Q. Does it detect unused CSS? | क्या यह unused CSS detect करता है?
Yes — for simple class/id/tag selectors; complex selectors are skipped to avoid false positives. | हाँ — सरल class/id/tag selectors के लिए; जटिल selectors को false positives से बचने के लिए छोड़ दिया जाता है।
Q. Can I upload a Markdown file? | क्या मैं एक Markdown फ़ाइल अपलोड कर सकता हूँ?
Yes — .md/.markdown files are converted to HTML automatically on upload. | हाँ — .md/.markdown फ़ाइलें अपलोड होते ही स्वतः HTML में बदल जाती हैं।
Q. What templates are available? | कौन से templates उपलब्ध हैं?
Invoice, Resume, Certificate, Receipt, Letterhead, Business Card, ID Card, Poster, Flyer, Report, Newsletter and Brochure. | Invoice, Resume, Certificate, Receipt, Letterhead, Business Card, ID Card, Poster, Flyer, Report, Newsletter और Brochure।
Q. Can I convert multiple files at once? | क्या मैं एक साथ कई फ़ाइलें बदल सकता हूँ?
Yes — Batch Conversion converts multiple .html files and bundles the PDFs into a ZIP, or merges them into one PDF. | हाँ — Batch Conversion कई .html फ़ाइलों को बदलता है और PDFs को एक ZIP में bundle करता है, या उन्हें एक PDF में merge करता है।
Q. Can I insert a QR code or barcode into my document? | क्या मैं अपने document में QR code या barcode डाल सकता हूँ?
Yes — generate one from any text or URL and insert it directly into your HTML as an image. | हाँ — किसी भी text या URL से एक बनाएं और इसे सीधे अपनी HTML में image के रूप में डालें।
Q. Does the tool work on mobile devices? | क्या यह टूल mobile devices पर काम करता है?
Yes — the layout, editor and preview are fully responsive, with a sticky action bar on small screens. | हाँ — layout, editor और preview पूरी तरह responsive हैं, छोटी screens पर एक sticky action bar के साथ।
Q. What keyboard shortcuts are available? | कौन से keyboard shortcuts उपलब्ध हैं?
Ctrl+S converts, Ctrl+P prints, Ctrl+O opens a file, Ctrl+N clears, Ctrl+F finds, Ctrl+H replaces, and Ctrl+Shift+P opens fullscreen preview. | Ctrl+S convert करता है, Ctrl+P print करता है, Ctrl+O फ़ाइल खोलता है, Ctrl+N clear करता है, Ctrl+F find करता है, Ctrl+H replace करता है, और Ctrl+Shift+P fullscreen preview खोलता है।
Q. Is my session/draft saved automatically? | क्या मेरा session/draft अपने आप सहेजा जाता है?
Yes — your HTML/CSS/JS drafts and recent file names are auto-saved to your browser's local storage. | हाँ — आपके HTML/CSS/JS drafts और हाल की फ़ाइलों के नाम आपके browser के local storage में अपने आप सहेजे जाते हैं।
Q. Does it support accessibility features like large font and high contrast? | क्या यह large font और high contrast जैसी accessibility सुविधाओं का समर्थन करता है?
Yes — toggle them from the tool header; both persist across visits. | हाँ — इन्हें tool header से toggle करें; दोनों बार-बार आने पर भी बनी रहती हैं।
Q. Can I preview my document at different screen sizes? | क्या मैं अपने document को अलग-अलग screen sizes पर preview कर सकता हूँ?
Yes — Desktop, Laptop, Tablet and Mobile presets, plus zoom and fullscreen. | हाँ — Desktop, Laptop, Tablet और Mobile presets, साथ ही zoom और fullscreen।
Q. Does this tool use any AI? | क्या यह टूल किसी AI का उपयोग करता है?
No — rendering, validation, minification and all other logic use fixed, deterministic code; no AI model is used anywhere. | नहीं — rendering, validation, minification और बाकी सारा logic निश्चित, deterministic कोड का उपयोग करता है; कहीं भी कोई AI मॉडल उपयोग नहीं होता।
Q. Are external stylesheets or remote web fonts supported? | क्या external stylesheets या remote web fonts समर्थित हैं?
Best-effort only — for reliable results, keep CSS embedded/inline; some remote fonts may not load in the isolated preview context. | केवल best-effort — विश्वसनीय परिणामों के लिए, CSS को embedded/inline रखें; कुछ remote fonts isolated preview context में लोड नहीं हो सकते।
Q. Is this tool free to use? | क्या यह टूल उपयोग करने के लिए मुफ़्त है?
Yes — completely free, with no login, no signup and no hidden charges. | हाँ — पूरी तरह मुफ़्त, बिना किसी login, signup या छुपे हुए शुल्क के।
Q. Can I share the generated PDF via WhatsApp or email directly? | क्या मैं generated PDF को सीधे WhatsApp या email से share कर सकता हूँ?
Not directly — share buttons share this tool's page link; the generated PDF is a local file on your device, since nothing is uploaded anywhere. | सीधे नहीं — share बटन इस टूल के page link को share करते हैं; generated PDF आपके device पर एक local file है, क्योंकि कहीं कुछ अपलोड नहीं होता।