Nouplo

MIME 타입 목록

Content-Type에 무엇을 적을지, 틀리면 어떻게 되는지.

종류
50
출력
html htm  text/html
            A web page. Always with charset=utf-8.
css       text/css
js mjs    text/javascript
            application/javascript is obsolete but still served everywhere.
json      application/json
            No charset parameter: JSON is UTF-8 by definition.
xml       application/xml
            text/xml is also registered and means the same to browsers.
txt       text/plain
csv       text/csv
md        text/markdown
yaml yml  application/yaml
            Registered in 2024; text/yaml is what older servers send.
pdf       application/pdf
zip       application/zip
gz        application/gzip
tar       application/x-tar
7z        application/x-7z-compressed
rar       application/vnd.rar
png       image/png
jpg jpeg  image/jpeg
            Note the type is jpeg even when the extension is jpg.
gif       image/gif
webp      image/webp
avif      image/avif
svg       image/svg+xml
            Served as anything else, a browser will not render it.
ico       image/x-icon
            image/vnd.microsoft.icon is the registered one; both work.
bmp       image/bmp
tif tiff  image/tiff
heic      image/heic
mp4 m4v   video/mp4
webm      video/webm
mov       video/quicktime
mp3       audio/mpeg
            Not audio/mp3, which is not registered.
m4a       audio/mp4
wav       audio/wav
            audio/x-wav and audio/wave appear in the wild too.
ogg oga   audio/ogg
flac      audio/flac
woff2     font/woff2
woff      font/woff
ttf       font/ttf
otf       font/otf
wasm      application/wasm
            Must be exact or streaming compilation refuses it.
doc       application/msword
docx      application/vnd.openxmlformats-officedocument.wordprocessingml.document
xls       application/vnd.ms-excel
xlsx      application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
ppt       application/vnd.ms-powerpoint
pptx      application/vnd.openxmlformats-officedocument.presentationml.presentation
epub      application/epub+zip
ics       text/calendar
vcf       text/vcard
srt       application/x-subrip
vtt       text/vtt
            Must be exact or the browser ignores the track.
bin       application/octet-stream
            The fallback: bytes with nothing said about them.

파일은 내 기기 밖으로 나가지 않습니다

이 도구는 브라우저 안에서만 작동합니다. 붙여넣은 내용은 기기에서 처리되고 서버로 전송되지 않으므로 토큰, 키, 공개 전 문서도 안심하고 사용할 수 있습니다.

사용 방법

  1. 비워 두면 목록이 나옵니다.
  2. png 또는 .png처럼 확장자를 넣으면 해당 타입이 나옵니다.
  3. image/ 처럼 타입 일부를 넣으면 그 아래가 모두 나옵니다.
  4. 비고도 읽어 보세요. 일부는 오류 없이 조용히 고장납니다.

자주 묻는 질문

특히 중요한 건 어떤 건가요?
틀리면 브라우저가 동작을 거부하는 것들입니다. SVG를 text/plain으로 주면 렌더링되지 않습니다. WebAssembly는 application/wasm이 아니면 스트리밍할 수 없습니다. .vtt 자막을 text/plain으로 주면 무시되고, 영상은 자막 없이, 오류도 없이 재생됩니다.
JavaScript는 text/javascript인가요 application/javascript인가요?
text/javascript입니다. 오랫동안 application/javascript가 권장이었지만 지금은 폐기 상태입니다. 둘 다 동작하므로 예전 것도 한동안 계속 보게 됩니다.
charset=utf-8은 붙여야 하나요?
text/html과 text/plain에는 붙입니다. application/json에는 붙이지 않습니다. JSON은 정의상 UTF-8이라 charset 지정은 의미가 없습니다(해롭지는 않습니다).
application/octet-stream은 뭔가요?
“바이트 덩어리입니다, 내용은 말씀드리지 않겠습니다”라는 뜻입니다. 정말 모를 때 맞는 답이고, 브라우저는 표시하지 않고 내려받습니다.
서버로 전송되나요?
아니요. 브라우저 안에서만 동작하므로 입력한 내용은 컴퓨터를 벗어나지 않습니다.

관련 도구