Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Document

Focus mode
Document - Amazon Translate API Reference

The content and content type of a document.

Contents

Content

The Contentfield type is Binary large object (blob). This object contains the document content converted into base64-encoded binary data. If you use one of the AWS SDKs, the SDK performs the Base64-encoding on this field before sending the request.

Type: Base64-encoded binary data object

Length Constraints: Maximum length of 102400.

Required: Yes

ContentType

Describes the format of the document. You can specify one of the following:

  • text/html - The input data consists of HTML content. Amazon Translate translates only the text in the HTML element.

  • text/plain - The input data consists of unformatted text. Amazon Translate translates every character in the content.

  • application/vnd.openxmlformats-officedocument.wordprocessingml.document - The input data consists of a Word document (.docx).

Type: String

Length Constraints: Maximum length of 256.

Pattern: ^[-\w.]+\/[-\w.+]+$

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.