Convert JXL to PDF

Converting JXL to PDF turns a picture into a document, which is what a claim form, an upload portal or a print shop usually wants. JPEG XL is an image format almost nothing accepts as an attachment; a PDF opens on every desktop, phone and printer without a question.

  • Where it runs In your browser. The file is never uploaded.
  • Lossless Nothing is discarded. The PDF holds exactly what the JXL held.
  • File size limit Up to 100 MB per file, free, without an account.

Up to 100 files at once. Mixed formats are fine.

The form takes a PDF and will not take a JPEG XL

This conversion is almost never about the picture. It is about a system on the other side: a claims portal, a university submission page, an expenses tool, a records office, a printer’s upload form. Those systems accept PDF because PDF is the format that is guaranteed to look the same on their screen as on yours, and many of them accept nothing else.

JPEG XL is at the far end of that spectrum. The registry files it as niche with partial browser support, Chrome removed its decoder in 2023, and no upload form anywhere is going to list .jxl among its accepted types. Wrapping the picture in a PDF sidesteps the entire question of whether the recipient can decode the format, because what they receive is a document with a picture already drawn on it.

What happens inside: the JPEG XL becomes a PNG before it becomes a PDF

PDF does not hold arbitrary image formats. The writer used here embeds JPEG and PNG directly, and a JPEG or a PNG dropped on this site therefore goes into the document byte for byte, untouched and instant. A JPEG XL cannot take that path — nothing in the PDF specification knows what it is — so it is decoded to pixels and re-encoded as a PNG on the way in.

The consequence is worth knowing before you look at the result: nothing is lost, and the file gets a great deal bigger. PNG stores every pixel exactly, which on a photograph means storing every grain of noise, and JPEG XL exists precisely because it does not have to. A 3 MB JXL photograph can become a PDF several times that size. If the document only has to be looked at, converting the JXL to JPG first and then that JPG to PDF produces a far smaller file by the same route the site’s own JPEG path takes.

Fit to image, A4 or US Letter for your JPEG XL page

Fit to image is the default and it means what it says: the page becomes exactly the size of the picture, so there is no white border, no letterbox and no guessing at a paper size for something that will never be printed. Most images converted to PDF are going into an email or an upload field, and there a page shaped like the picture is the better result.

The mechanism has one quirk worth knowing. PDF measures in points of 1/72 inch, and fit-to-image maps one pixel to one point, so a 4,032-pixel-wide photograph produces a page about 56 inches across. On screen this is invisible — the viewer scales it to the window — but a print dialog will show you a page the size of a door. That is the reason A4 and US Letter are there, and the reason to choose one the moment a printer is involved.

Margins and orientation around a JPEG XL image

The margin control adds space around the picture. On a fixed paper size that space comes out of the image, which is scaled down to fit inside it; on fit-to-image the page grows instead, since there is no fixed boundary for the margin to eat into. A margin of zero is the default and is right for an upload, where a border is wasted bytes and nothing else.

Orientation applies to A4 and US Letter and is ignored by fit-to-image, which takes its shape from the picture and therefore cannot be in the wrong one. Automatic is the sensible default: it leaves the paper portrait, which is what a form expects. Choose landscape deliberately when the image is wide and the page is going to be printed, otherwise a panorama lands as a thin strip across the middle of an upright sheet with most of the paper unused. The picture is always centred in whatever room the margin leaves, so there is no way to place it in a corner from here — that is a layout decision, and it belongs in a document editor rather than in a converter.

A small JPEG XL is never enlarged onto the page

The picture is scaled down to fit inside the margins and never scaled up. If the JPEG XL is 400 pixels wide and the page is A4, it is drawn at its own size in the middle of the sheet rather than stretched across it — because enlarging a small image onto a large page turns a crisp logo into a blurry one and there is no way to make that look deliberate.

So a small source produces a small picture on a large page, and that is the correct outcome rather than a bug. If you actually want the image to fill the sheet, the thing to change is the image: enlarge it in an editor where you can choose the interpolation and see the result, or go back to whatever produced the JPEG XL and export it larger. A PDF writer is the wrong place to make that decision blindly.

The PDF has no text layer, even if the JPEG XL is a scan

A PDF made this way contains one thing: a picture drawn on a page. If the JPEG XL is a scanned letter, a photographed receipt or a screenshot of an invoice, the words in it are pixels and stay pixels. Nothing in the document can be selected, copied, searched or read out by a screen reader.

That is often perfectly acceptable — a human is going to look at it, and the picture is the evidence. It fails when the recipient’s system searches submitted documents, or when you will need to find this file again by its contents in two years. It also fails accessibility outright: a screen reader announces an image and nothing else, so a form submitted this way is unreadable to somebody who cannot see it. In that case run the image through text recognition to get the words as text, and keep the PDF for what it is good at, which is looking exactly the same everywhere.

One JPEG XL, one page — and a folder gives you a folder

Each conversion produces a single-page PDF containing a single image. Dropping twenty JPEG XL files gives you twenty PDFs, not one document with twenty pages, and there is no ordering step because there is no sequence to order.

If what you need is one document, that is a merge and it belongs to a PDF tool rather than an image converter — the ordering, the page numbering and the rotation of individual pages are decisions this page has no way to ask you about. Converting first and merging afterwards is two steps and gets a better result than a converter guessing at the sequence of files from their names.

Printing a JPEG XL: pick the paper before you pick anything else

If the PDF is going on paper, choose A4 or US Letter and set the orientation to match the picture. That produces a document a print dialog understands immediately, with the image centred and scaled to fit inside whatever margin you asked for, and no surprise at the printer.

A margin of a few units is worth adding for print even though zero is right for uploads, because most desktop printers cannot put ink right to the edge of the sheet and will silently shrink a full-bleed page to fit their own hardware margin. Deciding the border yourself is better than letting the driver decide it, and it means the printed result matches the preview.

The JXL and the finished PDF both stay on your machine

The JPEG XL decoder and the PDF writer are WebAssembly and JavaScript loaded into this tab on demand. The image is read from your disk, decoded in memory, drawn into a document and handed back as a download. No request carrying the picture or the finished PDF is made, so there is no server copy and no queue.

This matters more for this pair than for most, because of what people convert to PDF. The images that end up in a claims portal or a records system are payslips, medical letters, passports, invoices and signed forms — the exact category of document where “we delete it after an hour” is a promise you would rather not need. Here there is nothing to delete, and the network tab shows it.

When a PDF is the wrong wrapper for your JPEG XL

If the recipient is a person who will look at the picture and nothing more, a PDF adds a layer of packaging and a lot of bytes for no benefit. An image format they can open is smaller, faster and easier to view on a phone, and the whole question is which image format that is rather than whether to make a document.

PDF earns its place when the file must survive a process: a submission that validates the type, a printer that needs a paper size, an archive that expects documents rather than pictures, a signature workflow. Where none of those apply, the JPEG XL is better kept as an image — and the conversion worth doing is to a format that opens everywhere rather than to a document that wraps one.

How to turn a JXL image into a PDF document

  1. Drop the JXL file onto this page.
  2. Choose fit-to-image for an upload, or A4 or US Letter if it is going to be printed, and set a margin.
  3. Download the PDF and check the page size in the print preview before you send it.

JXL and PDF: an image format inside a document format

JXL compared with PDF
JXLPDF
Full nameJPEG XLPortable Document Format
File extension.jxl.pdf
Media typeimage/jxlapplication/pdf
CompressionEither, depending on the settingEither, depending on the setting
First published20211993
Published byJoint Photographic Experts GroupAdobe
SpecificationISO/IEC 18181ISO 32000-2
LicensingOpen standardOpen standard
Standing todayNicheCurrent
Bit depth32
Colour it can describeRGB, greyscale, wide gamutRGB, CMYK, greyscale
Opens in a browserSome browsersEvery browser
Considered insteadAVIF, WebP, PNGDOCX, HTML

What is lost

PDF has nowhere to put the EXIF block — camera, lens, shutter speed and ISO and the embedded ICC colour profile, so those go no further than the JXL. Worth checking before the original is deleted, and worth knowing if the point was to strip it.

What survives

Nothing is discarded. JXL and PDF both store their content losslessly, so the conversion is a change of packaging rather than a change of quality, and it can be repeated without accumulating damage.

Transparency survives. Both JXL and PDF store an alpha channel, so a cut-out stays cut out and nothing is filled in behind it.

Opening the result

PDF opens in every current browser. JXL has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

The usual programs do not overlap: JXL opens in GIMP and ImageMagick, PDF in Adobe Acrobat, Preview and LibreOffice Draw — so whoever receives the result needs something from the second list.

What each format is for

JXL is Joint Photographic Experts Group's format, published in 2021. It records 32 bits per channel.

PDF comes from Adobe and dates from 1993, specified as ISO 32000-2. Adobe Acrobat, Preview and LibreOffice Draw all read it.

PDF was published in 1993 and JXL in 2021. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.

JXL to PDF: page size, file size and printing

Are my JXL files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is pdf-lib, a PDF writer that runs entirely in JavaScript; your browser fetches it once and caches it.

Does the PDF lose any quality?

No. The picture is decoded and written into the PDF as a lossless PNG, so every pixel that came out of the JPEG XL is in the document. What it does cost is size — see the answer below.

Why is the PDF so much bigger than the JXL?

Because a PDF can only embed a few image types, and JPEG XL is not one of them. The picture is re-encoded as PNG before it goes into the document, and PNG is far less efficient than JPEG XL on a photograph. Converting the JPEG XL to JPG first and that JPG to PDF gives a much smaller document.

Which page size should I choose?

Fit to image, unless it is going on paper. Fit makes the page exactly the shape of the picture, with no white border and no letterboxing, which is right for an upload or an email. Choose A4 or US Letter when a printer is involved.

Can I put several JPEG XL files into one PDF?

Not on this page. Each image becomes its own single-page PDF, and a folder gives you one document per file. Merging them into a single multi-page PDF is a separate job with its own tool.

Is the text in the image searchable in the PDF?

No. The PDF contains a picture of the text, not the text, so nothing in it can be selected or searched. If you need the words, run the image through text recognition instead.

Is this a PDF/A archival file?

No. It is an ordinary PDF. It will open anywhere, but it makes none of the guarantees an archival submission process asks for, such as embedded colour profiles and a declared conformance level.

More about these formats

Where these figures come from

The claims this page makes about JXL and PDF are checkable, and these are the documents that settle them.