Developer API documentation

Convert to UTF-8

POST
https://subtitletools.com/api/v1/convert-to-utf8
This endpoint is the API version of the convert to UTF-8 tool.

This endpoint can be used for converting any text file to UTF-8.

Request body

Field Type Required Description
subtitle File Required The input file that should be converted to UTF-8. Note that despite the name of this field, the input file does not have to be a subtitle. It can be any type of text file.

Example responses

{
    errors: null,
    download_url: "https://subtitletools.com/api/v1/download/6436c844e3"
}

Or, when a validation error occurs:

{
    errors: [
        "The subtitle field is required."
    ],
    download_url: null
}