Polotno

File converter

PSD to HTML converter

Convert PSD to one HTML file with positioned layout and selectable text. Fonts may load externally. Edit in the live editor before exporting.

Drop a PSD file here to convert it to HTML

or

Runs entirely in your browser. Your file never leaves your device.

Quick answer

Drop a PSD, get a single HTML file with the design as positioned elements. Edit in the editor first if you want.

Formula: PSD → Polotno JSON → positioned HTML (browser conversion)

Ship a PSD's contents as a webpage without losing the layout. Drop the file above and get one HTML file with positioned elements and selectable text. No Photoshop or server upload is needed.

One HTML file, with font references

Imported image data is embedded in the HTML and element styles are inline. Fonts can still require a network connection: standard families may use Google Fonts links, and custom fonts retain their sources. Offline, missing fonts fall back to substitutes, which can change the layout.

Positioned layout, selectable text

Each page contains positioned HTML elements inside a design div. Supported text layers become selectable text nodes. Unsupported PSD features can change appearance, so compare the exported page with the original before sharing it.

Edit during conversion

As soon as the PSD parses, it loads into the live Polotno editor. Edit text, change colors, move layers, drop in new images, then click Download as HTML in the editor toolbar. Useful when a PSD is 90% of what you want to share as a single-file webpage and one section needs reworking.

The same conversion in code

import { psdToJson } from "@polotno/psd-import";
import { jsonToHTML } from "@polotno/html-export";

const buffer = await file.arrayBuffer();
const json = await psdToJson({ psd: buffer });

// Returns HTML as a string. For Node, import from @polotno/html-export/node
// and install its @napi-rs/canvas and linkedom peers.
const html = await jsonToHTML(json);

Full API reference: PSD Import and the Import & Export overview (HTML export section).

Frequently asked questions

Q: What does the HTML output look like?

One .html file with positioned elements inside a design div. Imported image data is embedded and element styling is inline. Standard fonts can use Google Fonts stylesheet links, and custom fonts can reference external URLs. Offline, unavailable fonts use substitutes.

Q: Why HTML and not a flat image?

Because HTML keeps layout and selectable text. A flat PNG/JPG export throws away every advantage of having layers in the first place. The HTML this tool produces is easier to inspect, copy from, and host than a flattened bitmap, while keeping the visual layout exact.

Q: Is the text selectable?

Supported text layers become selectable, copyable HTML text. Text already flattened into an image in the PSD remains an image.

Q: Can I edit the PSD before downloading the HTML?

Yes. That's the default flow. As soon as the PSD parses, it opens in the embedded Polotno editor. Tweak text, swap colors, move layers, replace images, then click "Download as HTML" in the editor toolbar.

Q: Will the HTML render in every browser?

Modern browsers render the positioned HTML without a JavaScript runtime. Check your target browsers and font loading before publishing.

Q: Is this responsive HTML I can use as a webpage template?

Not directly. The output is a fixed-size HTML layout of the imported design. It's the right format for sharing a high-fidelity preview, archiving a design as a single file, or pasting into an email signature. For a true responsive HTML/CSS rebuild of a PSD layout, you'll want a dedicated PSD-to-Webflow / PSD-to-React workflow.

Want this in your app? Embed Polotno SDK.

TRUSTED BY

100,000+

CREATORS

300+

BUSINESSES

ExpediaUnbounceLovePopPostGridPredis.ai