Testing file uploads or a content-type allow-list? This generator hands you random, valid IANA media types — optionally filtered to one category — along with a typical file extension for each.
How it works
An IANA media type takes the form type/subtype. The top-level type is one of a
small set of categories (text, image, audio, video, application), and
the subtype names the specific format. This tool keeps a table of registered
types and samples from it:
filter the table to the chosen category (or keep all)
shuffle and take the first N entries
render the type/subtype string and its extension
Because the entries come from a real table, the strings you get are ones a
browser or server would actually emit in a Content-Type header.
Tips and notes
Remember that a Content-Type may include parameters after a semicolon, most
commonly a charset such as text/html; charset=utf-8. When validating uploads,
match on the type/subtype portion and treat the extension as a hint only — never
trust it as proof of the real format.