Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Web & CSS

Content-Disposition Builder & Parser

Generate a safe Content-Disposition response header for inline display or downloads, or parse pasted headers to inspect disposition, filename, and filename* parameters. Processing stays in your browser.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

Building a header, or reading one

In build mode the tool takes a disposition type and a filename and writes a complete response header: an ASCII fallback such as filename="resume 2025.pdf" plus an RFC 5987 filename*=UTF-8''… parameter carrying the percent-encoded bytes, so accented and non-Latin names survive the trip. In parse mode you paste raw header lines and get a table of the disposition type, every parameter and its value, with problems flagged as separate rows.

Why filename* exists alongside filename

A download called résumé.pdf sent with only filename= gets mangled by older clients and can be rejected outright by modern ones. Emitting both parameters is the standard remedy; the ASCII fallback is produced automatically by stripping diacritics, replacing unencodable characters with underscores and dropping quotes, backslashes and semicolons.

What the parser flags

Each parsed line warns about uncommon disposition types, repeated filename parameters and filenames containing backslashes or forward slashes — the path-traversal shape a server must sanitize before trusting it. Text that is not a valid header becomes an “Invalid header” row instead of throwing, so a whole paste still reports.

Header text only, nothing on the wire

The tool shapes or inspects header strings and never issues an HTTP request or attaches a response, so it cannot by itself trigger a download. Everything is evaluated locally; the filenames you type and the headers you paste stay in the page.

Questions

Why does the output include filename*?

filename* uses RFC 5987 encoding and safely carries Unicode filenames. A quoted ASCII fallback is included for older clients.

Does this set a browser download?

No. It only creates or parses header text locally and never sends a response.

Can a filename be trusted as a path?

No. Header filenames are client hints. Servers should sanitize names, prevent path traversal, and avoid deriving authorization from them.

See category