---
schema_version: "1"
id: fafd134ffbbd3e9e422df0ef6aee92320aa28ceffed8ca607e7ecc056be7a98e
title: Line Ending Header
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-asynch/guides/api-bulk-v2/reference/bulk-api-2-0-line-ending-header.md
canonical_url: https://developer.salesforce.com/docs/platform/api-asynch/guide/bulk-api-2-0-line-ending-header.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 412b0778c8675de51ff314fe36354f63b17b7ae10b48e466e1d733840500caae
products:
  - Bulk API 2.0 and Bulk API Developer Guide
  - Platform Developer Content
---

# Line Ending Header

Use the `Sforce-Line-Ending` header to specify how line endings are formatted.

When you create a Bulk API 2.0 job, specify a line ending that matches the line ending used to create the CSV file using the `lineEnding` request field. Bulk API 2.0 supports two line-ending formats:

-   `LF` linefeed
-   `CRLF` carriage-return plus linefeed

The default line ending, if not specified, is `LF`. Different operating systems use different characters to mark the end of a line.

Unix / Linux / OS X uses `LF` (line feed, '`\n`', `0x0A`).

Windows / DOS uses `CRLF` (carriage return followed by line feed, '`\r\n`', `0x0D0A`).

For example,

```nolang
{
    "object" : "Account",
    "contentType" : "CSV",
    "operation" : "insert",
    "lineEnding" : "LF"
}
```

Note that it’s possible that the text editor used to create the CSV file is configured for a specific line-ending format and might supersede the default operating system format.

