← Journal

PNG, WebP, PDF or HTML: Which Format Should Your Mockup Use?

10/8/2026 · 8 minute read · By Swelik

Why a PDF can still blur, when raster exports work well, and what a static HTML preview needs. Choose a format based on the source and the review.

Three mockup format families: raster images, PDF documents and static HTML with CSS.
Three mockup format families: raster images, PDF documents and static HTML with CSS.

The sharpness of a website mockup depends on more than its filename extension. A large PNG can contain excellent detail, while a PDF can contain nothing more than a low-resolution screenshot. HTML can render text cleanly in a browser, but only if the required styles and assets are available. Choosing the right format starts with understanding what is inside the file.

For Swelik, use an image when you want a predictable visual snapshot, a PDF when your export preserves useful vector content, or static HTML when you already have a browser-ready design. None of these choices automatically creates a working website or repairs missing detail. This guide explains the tradeoffs and gives you a practical export checklist.

Raster and vector are different kinds of information

A raster image is a grid of pixels. PNG, JPEG, and WebP mockups are raster images. When you display one beyond its available resolution, the browser has to spread those pixels over a larger area. It can smooth the result, but it cannot recover text detail that was never present in the source.

Vector content describes shapes rather than fixing every edge to an original pixel grid. A PDF can preserve vector text and paths, allowing those elements to be redrawn at different zoom levels. However, a PDF can also include raster photography, shadows, flattened effects, or entire page screenshots.

That is why “PDF never blurs” is not a reliable rule. A PDF preserves whatever content the export process put into it. Converting a small screenshot into a PDF wrapper does not turn its letters into vector text. Keep the original design source available so you can export again when necessary.

PNG: a dependable choice for interface snapshots

PNG is a practical option for layouts with text, icons, flat color, and sharp edges. Its lossless compression preserves the image data in the export. That does not mean every PNG is small; a very tall page with detailed artwork can still produce a substantial file.

Start from the full design frame rather than a thumbnail or a screenshot of the editor. Export at a width suitable for the intended review, then inspect body text and thin lines. If you export at twice the design width, the file may look sharper on a high-density display, but it also contains more pixels to transfer and decode.

Avoid repeatedly resizing the export through unrelated apps before uploading it. Keep a clean original. If the preview looks soft, compare the original pixel width with the viewing width before assuming that the sharing service damaged the file.

JPEG and WebP: consider the content and settings

JPEG is often useful for photographic material, but strong lossy compression can introduce visible artifacts around text and high-contrast edges. A page dominated by small typography may expose those artifacts more clearly than a full photograph does. Inspect the result at the size your client will use.

WebP supports both lossy and lossless encoding. It can be a useful format for a finished mockup, but the export settings still matter. A file being labeled WebP does not tell you whether its content was preserved losslessly or compressed with a quality tradeoff.

Compare actual exports rather than choosing only by extension. Look at the navigation labels, small body copy, gradients, and fine separators. If a smaller version remains clear at the intended viewing size, it may be a sensible presentation file. Keep the highest-quality original for your own records and final delivery.

For technical format details, see the MDN image format guide.

PDF: preserve vectors, but inspect the export

A well-prepared PDF can be a good choice for long website designs with vector text and shapes. Swelik’s PDF viewer redraws page content at the selected zoom. The original document is preserved rather than replaced with a heavily compressed page image.

Check the exported PDF locally before uploading. Zoom into small text, look at the bottom of each page, and confirm that fonts and effects appear as intended. If text becomes visibly pixelated, the export may have flattened that content. Revisit the source export settings instead of repeatedly converting the same PDF.

Complexity affects loading as well as file size. A document with many drawing operations or large embedded images can take time to render. Fast scrolling may briefly reach an area before detailed rendering completes. Smaller transfers help network loading, while efficient rendering helps scrolling; they are related but separate problems.

Swelik uses bounded rendering resources, so unusually large pages or extreme zoom can still encounter limits. Do not promise a client that every PDF will remain instantly sharp at every zoom on every device. Test a representative page on the devices that matter for the review.

A quality checklist that checks the original source, display scale and final shared preview.
A quality checklist that checks the original source, display scale and final shared preview.

HTML and CSS: useful when the design is already browser-ready

Static HTML can display real browser text and layout rather than a single page image. This is useful when you already have a self-contained design export with its styles included. It can also make viewport comparisons more informative than scaling down a desktop screenshot, provided the CSS actually includes responsive behavior.

Include your style blocks or supported stylesheets, and make asset locations explicit. A relative reference such as “images/hero.jpg” points to a file that is not automatically uploaded with a single HTML document. Use an absolute HTTPS URL for an externally hosted asset, or an accepted embedded image when appropriate.

External asset URLs are preserved in supported HTML previews, but the other host still controls availability. Images may be removed or blocked from loading elsewhere. Fonts may require cross-origin permission. A private asset that only works while you are signed in may fail for your client. Test outside your own authenticated context where appropriate.

Swelik isolates HTML previews and restricts active content. Do not depend on uploaded JavaScript for the core presentation. Tailwind exports supported by the service are prepared as static styles, but a static preview is not a deployment environment for an arbitrary application. Use staging for functional testing.

Choose the format by review purpose

Your source or goalStart withCheck before sharing
A finished interface snapshotPNG or suitable WebPPixel width and text clarity
A photo-heavy mockupCompare JPEG and WebP exportsArtifacts around UI text and edges
A design with exportable vectorsPDFFonts, vector preservation and page complexity
A browser-ready static layoutHTML with CSSAssets, responsive rules and unsupported scripts
A working interaction or formA prototype or staging siteBehavior, states and task completion

You can use different formats for different milestones. A quick PNG may be enough to approve section order. A PDF may be better for checking fine visual details. A static HTML presentation may help review a layout that already exists as markup. Consistency matters, but forcing every project into one format can create unnecessary work.

Troubleshoot blur in the right order

First, open the original file locally. If it is already soft, the upload is not the first problem to solve. Return to the source and export with adequate resolution or preserved vectors. Second, inspect the display mode. An image shown at 100% answers a different question from the same image stretched to fill a large screen.

Third, distinguish temporary rendering from permanent source limitations. If a PDF becomes sharp after a section finishes drawing, the issue is different from a raster image that remains soft at every moment. Reducing unnecessary document complexity may help the former; only a better source can supply missing detail in the latter.

Finally, test the actual shared link. Check a desktop and a phone, and inspect both the first section and the bottom of a long page. Do not rely only on the upload thumbnail. Our Swelik sharing guide includes the complete pre-share workflow.

Do not confuse a mobile view with a mobile design

A desktop screenshot fitted into a phone-width viewer is a smaller view of the same desktop composition. It does not demonstrate how the navigation collapses, how columns stack, or how touch targets behave. Share a separately designed mobile mockup when those decisions need review.

HTML is different only when its CSS contains responsive rules that implement those changes. Narrowing a viewport cannot invent breakpoints that were not written. Label your review links clearly so the client knows whether they are seeing a mobile design, a desktop design scaled down, or a responsive static page.

Frequently asked questions

Will converting PNG to PDF improve sharpness?

Not by itself. The PNG remains raster content inside the PDF. A fresh export from the design source is the better route when you need additional detail or vector text.

Is the smallest file always the best preview?

No. Small size helps transfer, but excessive compression can make the review less useful. Judge the file at the intended viewing size and keep quality high enough for the decisions being made.

Can HTML load images from my computer?

A client cannot access a file merely because your HTML references its local path. Include assets in an accepted form or use reachable absolute HTTPS URLs. Check the resulting preview before sharing it.

Can I change formats during revisions?

Swelik’s replacement workflow can accept a supported revised file while retaining the project’s public URL. Verify the new preview and tell the client if the viewing experience has changed, such as moving from a static image to a PDF.

Export from the best available source, inspect the result, and then create your preview. Format selection should protect the design’s clarity, not become a substitute for checking the actual output.

Put this into practice with Swelik’s mockup sharing and review tools.

More from the journal

How to Present a Long Website Mockup Without Overwhelming the Client

Website Review Roles: Choose an Approval Owner Before Feedback Becomes Conflicting

Website Design Handoff Notes: Explain the Decisions a Screenshot Cannot Show

Less attachment. More context.

Your next review starts with a link.

Bring the design. Keep the conversation attached to it.

Upload a Mockup ↗