Files · verktøy

HTML til PDF-konverterer

Lim inn et enkelt HTML-dokument, forhåndsvis renset resultat og velg «Lagre som PDF» i nettleserens utskriftsdialog.

Kjøres i nettleseren. Ingen opplasting.

Your file is processed locally and is not uploaded.

HTML-innholdet er begrenset til 250 000 tegn. Nettadresser hentes ikke.

Av sikkerhetsgrunner fjernes skript, stiler, bilder, lenker, skjemaer og eksternt innhold. Dette verktøyet skriver ut enkel tekst og tabeller; det konverterer ikke en nettadresse.

Nettleseren lager PDF-en. Papirstørrelse, marger og topptekster angis i utskriftsdialogen.

Skriv inn innhold, forhåndsvis det eller åpne nettleserens utskriftsdialog.

Om verktøyet

HTML til PDF-konverterer sem complicação.

Verktøyet godtar HTML du oppgir; det henter eller konverterer ikke nettadresser. Behandlingen skjer i nettleseren. Skript, stiler, bilder, lenker, skjemaer og innebygd innhold fjernes for å hindre at skript eller eksternt innhold kjøres. Nettleserens utskriftsdialog lager PDF-en, så sidestørrelse, marger, topp-/bunntekst og endelig resultat avhenger av nettleserinnstillingene. Kompliserte oppsett kan endres. Behold en kopi av kilden.

Veiledning

Slik bruker du HTML til PDF-konverterer

The HTML to PDF Converter cleans a piece of HTML you paste, shows a preview, and then opens your browser's print dialog so you can choose Save as PDF. It keeps simple text and tables. It does not fetch a web address, and it removes scripts, styles, images, links and forms before anything is shown or printed.

Slik gjør du

  1. Type an optional document title, then paste your HTML into the content box. The box takes up to 250,000 characters.
  2. Press Preview document to see the cleaned result in a frame. Check that the headings, paragraphs and tables look right.
  3. Press Print / Save as PDF. A new tab opens with the cleaned page and the print dialog. Choose Save as PDF as the destination and set the paper size and margins there.

Eksempler

A heading and a short paragraph

Du skriver inn
Tittel
Receipt
HTML
<h1>Receipt 12</h1><p>Paid in full.</p>
Du får
Forhåndsvisning
Bare avsnittet «Hello».

Headings and paragraphs are on the list of allowed tags, so both pass through. The title only names the tab and the saved file in the browser.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

A small table

Du skriver inn
HTML
<table><tr><th>Item</th><th>Price</th></tr><tr><td>Tea</td><td>3.50</td></tr></table>
Du får
Forhåndsvisning
A two-column table with a header row and one data row

Tables, rows, header cells and data cells are allowed, as are the colspan, rowspan and scope attributes. Other attributes, such as class or style, are dropped.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

Script and image are stripped

Du skriver inn
HTML
<p>Hello</p><script>alert(1)</script><img src="photo.jpg">
Du får
Forhåndsvisning
Only the paragraph Hello

Scripts and images are not on the allowed list, so they are removed, and nothing runs or loads from outside. Page layout tags such as div and span are not allowed either: they are dropped and their text is kept.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

A web address pasted by mistake

Du skriver inn
HTML
https://example.com/report
Du får
Forhåndsvisning
The address printed as plain text, not the page behind it

The tool never visits an address. Text that is not HTML is treated as text, so you get those characters on paper. To save a live page, use the print option of the browser on that page.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

Når det er nyttig

  • Turn a small block of notes or a table written in HTML into a PDF without installing software.
  • Check what a snippet of generated HTML looks like once all scripts and external content are removed.
  • Make a plain printable copy of a short report, a price list or a receipt.

Begrensninger

  • Only a short list of tags survives: headings, paragraphs, lists, tables, quotes, code blocks and basic emphasis. Styles, images, links, forms and embedded content are removed, so rich layouts will change.
  • The browser makes the PDF, not the tool. Paper size, margins, headers and footers come from the print dialog, and a pop-up blocker can stop the print tab from opening.
  • The preview and the printed tab use their own simple styling, so table borders and alignment can differ a little between the two. Keep your original HTML as the master copy.

Tips

  • Write the page with p, h1 to h6, ul, ol and table, which all survive, instead of div and span, which do not.
  • Use the preview before printing, then check page breaks in the print dialog, since long tables can split across pages.
  • If the print tab does not appear, allow pop-ups for the site and press the button again.

Kilder

Vanlige spørsmål

Sobre HTML til PDF-konverterer.

Can I convert a website by typing its address?

No. The tool only reads HTML that you paste. It does not visit addresses, so it cannot copy a live page, its styles or its pictures. Use the browser's own print function on that page instead.

Why are my styles and images missing?

For safety the tool removes style blocks, inline styles, images, links, forms and scripts. Only simple text structure and tables are kept. This stops hidden code from running when the page is shown or printed.

Is my HTML uploaded to a server?

No. The HTML is cleaned and previewed in your browser and the PDF is created by your own print dialog. The page loads its cleaning script from the site's own files, so the first use needs a connection.

How do I get an actual PDF file?

Press Print / Save as PDF, and in the print dialog that opens choose Save as PDF (or Microsoft Print to PDF on some systems) as the printer. The file is then saved by the browser, not by this tool.

What happens if nothing is left after cleaning?

You see a message that no printable text or tables remain. This happens when the pasted HTML holds only unsupported parts, such as a lone image or script. An empty box gives a different message asking for content.

How long can the HTML be?

The content box accepts up to 250,000 characters. The document title is limited to 120 characters. Very long files may be slow in the preview, so split big documents into parts.

Hvordan bruker du HTML til PDF?

Lim inn et enkelt HTML-dokument, forhåndsvis renset resultat og velg «Lagre som PDF» i nettleserens utskriftsdialog.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.