Web developers design from PSD files by treating the Photoshop document as a visual specification, not as code to be converted. They inspect the file's layers, measurements, typography, and assets, then rebuild the design in HTML, CSS, and JavaScript so it behaves correctly in a browser. The PSD supplies appearance; the developer supplies structure, semantics, responsiveness, accessibility, and performance. That distinction is the single most important thing to understand about the workflow. A PSD-to-website job is not a translation from one format to another but a reconstruction in a different medium with different rules.

The phrase "design from PSD" can mean two things, and they produce different answers. In the most common usage, a designer has produced a Photoshop mockup and a developer must turn it into a working site — the classic design-to-code handoff. Less commonly, it describes a developer who opens a PSD to extract assets or verify details while building. This article focuses on the first meaning, because that is what most people searching the phrase are trying to understand, but the techniques overlap heavily with the second.

What a PSD actually gives a developer

A well-organized Photoshop file is a goldmine of specifications. A developer opening one wants to find, at minimum:

Layer groups named by section — header, hero, content blocks, footer — so the page's structure is legible before any code is written. Text layers left editable rather than rasterized, so font family, size, weight, line height, letter spacing, and color can be read exactly. Vector shapes for icons, buttons, and illustrations, which scale cleanly and can often be exported as SVG. Smart objects for logos and repeated components, which preserve resolution and allow updates. A defined artboard size, usually matching a grid or breakpoint, that establishes the design's baseline width.

The developer's first move is rarely to start coding. It is to read the file: zoom to 100%, step through layer groups, and note the measurements. Photoshop's rulers, guides, and the Info panel (which reports distances as you drag with the Move tool) turn the mockup into a set of numbers. Many teams also use plugins or companion tools — Zeplin, Avocode, Figma's inspection panel if the file has been migrated — that surface spacing, colors, and font properties without requiring the developer to own Photoshop. When a PSD arrives with no style guide, the developer effectively reverse-engineers one.

Reading the design system out of the file

Experienced developers do not measure every element individually. They look for repetition and infer a system. If headings appear at 48px, 36px, and 24px, those become type-scale tokens. If section padding is consistently 80px on desktop, that becomes a spacing variable. If the same blue appears on links, buttons, and accents, it becomes a brand color.

This inference matters because a PSD shows a finite number of states — usually one desktop view, sometimes a mobile view, occasionally hover states. The developer must extrapolate the rules behind the pixels. A button shown in one color implies a hover treatment the designer may not have drawn. A card grid at three columns implies a two-column and one-column arrangement at narrower widths. Good developers confirm these extrapolations with the designer rather than guessing silently, but the PSD itself rarely contains the answer.

A practical habit is to build a small inventory before writing markup: color swatches, font styles, spacing values, border radii, shadow definitions, and icon sizes. This inventory becomes the basis for CSS custom properties or a design-token file. Doing it up front prevents the drift that happens when a developer eyeballs values section by section and ends up with six near-identical grays.

From layers to semantic markup

The core skill in PSD-to-code work is mapping visual layers onto semantic HTML. A PSD's layer panel reflects how the designer stacked rectangles and text; the browser needs elements that describe meaning. A group of text layers at the top of the artboard labeled "Nav" should become a containing a with a list of links, not a stack of absolutely positioned s. A block with an image, a heading, and a paragraph is an or , and its heading level should follow the document outline rather than the visual size.

This is where beginners most often go wrong. Photoshop encourages pixel-perfect positioning; HTML rewards flow. A developer who tries to reproduce exact coordinates with absolute positioning produces a page that looks right at one width and collapses everywhere else. The correct approach is to extract the intent — "these three items sit side by side with equal gaps" — and express it with flexbox or grid, which will adapt as the viewport changes.

Headings deserve special attention because they are a common casualty of visual thinking. A designer may style a small subheading at 18px and the main page title at 40px; visually the 40px text leads. In markup, the page's primary heading should be the regardless of its size, and the smaller one should take the next appropriate level. CSS controls appearance; HTML controls structure. Keeping those concerns separate is what allows the page to remain accessible to screen readers and legible to search engines.

Extracting assets the right way

Every image, icon, and logo in the PSD must leave Photoshop in a web-appropriate form. The decisions here have real performance consequences.

Asset type Preferred export Why
Photographs JPEG or WebP, compressed Photographic detail compresses poorly in lossless formats
Icons, logos, simple shapes SVG Resolution-independent, small, styleable with CSS
Complex illustrations SVG if possible, otherwise PNG Vector preserves crispness at any size
Transparency-heavy graphics PNG or WebP JPEG cannot represent transparency
Background patterns CSS gradients or tiled images Avoids oversized single images

The key discipline is exporting at the sizes actually needed. A hero image drawn at 3000px wide in the PSD does not need to ship at 3000px to every visitor; the developer exports a set of sizes and lets srcset or CSS choose. Similarly, icons should be pulled as SVG wherever the designer used vector shapes, since a 24px PNG icon will look blurry on high-density displays while its SVG equivalent stays sharp and often weighs less.

Naming matters more than it seems. Photoshop's default layer names ("Rectangle 47 copy 3") tell the developer nothing. Teams that adopt a naming convention — icon-search, btn-primary-hover, hero-bg — make the extract-and-export step dramatically faster and reduce the chance of shipping the wrong asset. When a PSD arrives badly named, a diligent developer renames layers before exporting, because the export filenames inherit layer names.

Translating typography and color

Text is where PSDs and browsers diverge most noticeably. Photoshop renders type with its own engine and its own assumptions about line height and letter spacing; browsers use different engines with different defaults. A heading that looks perfectly spaced in Photoshop can look tighter or looser in the browser even with identical font size and family. Developers learn to expect this and to adjust line height and letter spacing to match the visual result rather than chasing the PSD's numeric values.

Font licensing is a practical trap. A designer may use a commercial typeface in the mockup; the developer needs the web license and the actual webfont files (WOFF2 typically) to reproduce it. If the license does not cover web embedding, the site must use a substitute, and that decision should be made early because it changes line breaks, spacing, and overall feel. System font stacks are a legitimate fallback that many performance-conscious teams choose deliberately.

Color requires similar care. The eyedropper in Photoshop reports colors in whatever mode the document uses; web colors are expressed as hex, RGB, or HSL. Most PSDs are RGB, so the conversion is straightforward, but developers should watch for colors that are nearly identical and consolidate them into tokens rather than shipping a dozen one-off values. Semi-transparent layers complicate things: a 40% black overlay over a photo should become a CSS rgba() or a gradient rather than an exported flattened image, whenever possible, so the effect remains adjustable.

Responsive behavior: the part the PSD usually doesn't show

A desktop PSD is a single snapshot. Real websites must work from small phones to large monitors, and the PSD typically provides no guidance for anything but its own artboard width. The developer therefore has to design the responsive behavior — or, better, confirm it with whoever owns the design.

Common patterns help. Multi-column layouts collapse to single columns. Sidebars move below main content. Navigation becomes a menu button or a simpler link row. Font sizes step down modestly rather than halving. Touch targets grow to a comfortable minimum size on small screens. Developers infer these transitions from the content's priorities: what must a phone user see first?

When the designer has supplied mobile artboards, the job is easier and more faithful; when they haven't, the developer should treat the responsive design as a decision requiring sign-off, not a private improvisation. Many of the disputes between designers and developers trace back to this gap — the developer built something reasonable, but not what the designer imagined, because the designer never drew it.

What the PSD cannot tell you

A Photoshop file is silent on several things that determine whether the site actually works:

Interaction and state. What happens on hover, focus, click, scroll? How do form fields show validation errors? What does a loading state look like? None of this lives in a static mockup. Content behavior. What if a headline runs to three lines instead of one? What if a product name is missing? What if there are 40 list items rather than 4? Robust layouts plan for variable content. Accessibility. Contrast ratios, focus indicators, alt text, reading order, and keyboard operability are usually absent from the design file and must be engineered. A developer should check text contrast against WCAG guidance rather than trusting the eyedropper; a pale gray that looks elegant in Photoshop may be unreadable in sunlight on a phone. Performance budgets. The PSD says nothing about how heavy the page should be. Developers set targets for image weight and total page size and then make asset decisions accordingly. SEO and metadata. Page titles, descriptions, heading structure, and structured data are invisible in the mockup.

This is why the most reliable PSD-to-code workflows include a conversation. The developer's questions — What's the hover style? Does this section have more than four items? Is this text ever longer? — are not pedantry; they're the gap between a picture and a product being closed.

Tools and the modern handoff

A generation of tools has grown up around this workflow precisely because PSDs are awkward specifications. Photoshop's own export features have improved, and plugins can generate CSS, extract assets in batches, and produce style guides. Dedicated handoff tools let designers mark up their comps with measurements and specs that developers can inspect in a browser. Some teams now design in tools that produce inspectable, component-based files, which reduces ambiguity.

But the underlying skill remains the same regardless of tooling: read the design, extract its system, rebuild it semantically, adapt it responsively, and verify it in real browsers on real devices. A developer who understands that process can work from a PSD, a Sketch file, a Figma frame, or a PDF with equal competence. The file format is a delivery mechanism; the judgment is the craft.

For teams still using Photoshop, a few conventions make handoff dramatically smoother: name layers and groups meaningfully, keep text editable, use shared layer styles for repeated colors and effects, organize artboards by screen, and include mobile views whenever possible. Developers, for their part, should review the file before estimating — a PSD with 200 unnamed raster layers tells you something about the job ahead.

The short version

Web developers design from PSDs by treating the file as a specification to be interpreted, not code to be exported. They measure spacing and type, infer the design system, export assets in web formats, write semantic markup styled with CSS, and then add the responsive behavior, interactivity, and accessibility the mockup never showed. The PSD answers "what should this look like?" The developer answers "how should this work?" — and the quality of the final site depends on how well those two questions are reconciled, usually through direct communication between the people asking them.