File type / text
.vtt
Human-readable text or code. Easy to inspect and version-control.
Best for: Source code, configuration files, logs, and documentation that should stay transparent to collaborators.
Type family
text
Subtype
vtt
Default handling
Inline-capable
Handling verdict
Modern browsers can usually display this media type without downloading it first.
The registry explicitly declares UTF-8.
HTTP content encoding can usually reduce this format further.
Text files rarely carry threats, but scripts can execute commands. Review before running.
HTTP response headers
Content-Type: text/vtt; charset=utf-8
Content-Disposition: inline; filename="example.vtt"
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=".vtt,text/vtt"Use this value on <input type="file"> to steer the picker toward .vtt, its known aliases, and files reporting text/vtt. It improves selection, but it is not validation—check the bytes again after upload.
Registry ledger
declared valuesMIME type
text/vtt
Registry source
iana
Character set
UTF-8
Compressible
Yes
Known aliases
None listed
Same MIME type
No sibling record
How to work with .vtt
operational notesOpen it with the format-aware tool first
Start with VS Code, Sublime Text, Any plain-text viewer. Normalize line endings and explicit UTF encodings when sharing across operating systems. 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
Text files rarely carry threats, but scripts can execute commands. Review before running.