.htaccess Redirect Generator
Generates .htaccess redirect rules for pages, HTTPS, www, and domain moves.
Find the right Content-Type for a file extension, or the extensions for a MIME type, with ready-to-paste Apache and nginx lines. You can also check what a file really is from its first bytes.
| MIME type | Extensions | Compressible | Source |
|---|
.webp or a type such as image/webp into Extension or MIME type.89 50 4E 47, PDF with %PDF-, ZIP with PK, and WebP with RIFF...WEBP..webp → image/webp; Apache line AddType image/webp .webp..js → text/javascript, the type the HTML standard now uses; application/javascript is the older name..json → application/json, compressible.photo.jpg that starts with 89 50 4E 47 is really a PNG, and the tool warns that the extension is wrong.| Extension | MIME type |
|---|---|
| .html | text/html |
| .css | text/css |
| .js, .mjs | text/javascript |
| .json | application/json |
| .svg | image/svg+xml |
| .webp | image/webp |
| .avif | image/avif |
| .woff2 | font/woff2 |
| .webmanifest | application/manifest+json |
| .wasm | application/wasm |
A label such as image/png that tells browsers and servers what kind of data a file holds. Servers send it in the Content-Type header.
Browsers refuse to run scripts and styles with the wrong type when X-Content-Type-Options: nosniff is set, and downloads may open in the wrong app.
On Apache, add an AddType line to .htaccess. On nginx, add the type to a types block. Select a row in the results to copy both.
No. Only the first 64 bytes are read, in your browser.
Often used together with the MIME Type Lookup.
Generates .htaccess redirect rules for pages, HTTPS, www, and domain moves.
Creates a web app manifest and the HTML tags to make a site installable.
Encodes and decodes Base64 for text and files.