.psd MIME type
Photoshop documentimages
image/vnd.adobe.photoshopLayered Photoshop files. The type is registered, but no browser can display them.
| MIME type | image/vnd.adobe.photoshop |
|---|---|
| Extensions | .psd |
| Content-Type | image/vnd.adobe.photoshop |
| Compress in transit? | No — already compressed |
| File signature | 38 42 50 53 (8BPS) Large Document Format (.psb) files share the signature with version 2 |
Good to know
- To show a PSD on the web, render a flattened preview on the server — ImageMagick's
magick file.psd[0] preview.pngtakes the composite image — and serve that as PNG or WebP. - Browsers may report
.psduploads asimage/vnd.adobe.photoshop,application/octet-streamor an empty type; check for the8BPSsignature instead.
Serve .psd files with the right type
The response header to send:
Content-Type: image/vnd.adobe.photoshop
Most servers pick the type from the file extension. If yours sends the wrong one, map it explicitly:
nginx (inside the types block in mime.types)
image/vnd.adobe.photoshop psd;
Apache (.htaccess or server config)
AddType image/vnd.adobe.photoshop .psd
Express
res.set("Content-Type", "image/vnd.adobe.photoshop");Python
import mimetypes
mimetypes.add_type("image/vnd.adobe.photoshop", ".psd")HTML file input
<input type="file" accept=".psd,image/vnd.adobe.photoshop">
Check it
See what a server sends for a file, and what type a local file really is by its contents:
curl -sI https://example.com/file.psd | grep -i '^content-type:' file --mime-type file.psd
Frequently asked questions
What is the MIME type for .psd files?
image/vnd.adobe.photoshop.
What Content-Type header should a .psd file be served with?
Content-Type: image/vnd.adobe.photoshop. It's already compressed, so servers shouldn't gzip it.
How can I tell if a file is really a .psd?
Check its bytes rather than the extension: PSD files start with 38 42 50 53 (8BPS) — Large Document Format (.psb) files share the signature with version 2. On the command line, file --mime-type name.psd does this for you.
Related types
Headers that go with it: Content-Type · Content-Disposition · X-Content-Type-Options