Skip to content
Skip to content
← All HTTP Headers
Response

Content-Length

Specifies the size of the response body in bytes.

Syntax

Content-Length: <size-in-bytes>

Example

Content-Length: 3495

Description

Content-Length indicates the exact size of the response body in bytes, allowing the browser to determine when transfer is complete.

Enables efficient connection reuse. Without it, the server must use chunked transfer encoding or close the connection.

Automatically set by most servers for static files. Incorrect values cause incomplete responses.

Check if your website sends this header correctly

Check your headers →

Related Articles

Related Headers