Skip to main content

Split String

Separates a string into two different strings.

Input​

NameData TypeDescription
Source StringStringThe string to be split.
Split IndexNumberThe position where the string will be split. This will be the first character of String 1.

Output​

NameData TypeDescription
String 0StringThe first portion of the split string.
String 1StringThe second portion of the split string.
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies