File type / application
.mp4
Application-owned data: this family spans documents, archives, structured payloads, and software-specific files.
Best for: Workflows that need a format-aware viewer, editor, or parser rather than a generic media player.
Type family
application
Subtype
mp4
Default handling
Download
Handling verdict
Serve it as an attachment so the browser saves the bytes instead of trying to interpret them.
Use a format-aware application rather than a plain-text editor.
The registry does not declare compressibility; compare encoded size before enabling it globally.
Application formats vary widely. Verify the source and use a trusted, up-to-date viewer for unfamiliar files.
HTTP response headers
Content-Type: application/mp4
Content-Disposition: attachment; filename="example.mp4"
X-Content-Type-Options: nosniffThe MIME type describes the payload, Content-Disposition controls whether the browser previews or saves it, and nosniff prevents the browser from silently substituting a guessed type.
HTML file input
accept=".mp4,.mpg4,.mp4s,.m4p,application/mp4"Use this value on <input type="file"> to steer the picker toward .mp4, its known aliases, and files reporting application/mp4. It improves selection, but it is not validation—check the bytes again after upload.
Registry ledger
declared valuesMIME type
application/mp4
Registry source
iana
Character set
Not declared
Compressible
Not declared
Known aliases
.mpg4, .mp4s, .m4p
Same MIME type
.m4p
How to work with .mp4
operational notesOpen it with the format-aware tool first
Start with A format-aware viewer, The software that created it, Developer tooling. Use the declared MIME type and an explicit Content-Disposition instead of relying on the filename alone. If the file came from someone else, keep the original untouched and work on a copy so a failed conversion cannot destroy the only source.
Safety note
Application formats vary widely. Verify the source and use a trusted, up-to-date viewer for unfamiliar files.