🎯 Fix messed up Persian subtitles for editing in CapCut and other non-Persian-friendly editors.
This project reshapes Persian subtitles in .srt format to display correctly using appropriate character forms (Isolated, Initial, Medial, Final) and fixes RTL issues for use in CapCut or similar video editing apps.
- 📝 Upload and reshape
.srtsubtitle files - 🔠 Converts disconnected Persian characters into correct visual forms
- 🔢 Reverses Arabic-Indic numbers (١٢٣...) when needed
- 💻 Handles English, timestamps, numbers, and punctuation correctly
- 📥 Download the reshaped subtitle in one click
- 🧹 Clear fields and copy text with a single button
You can run the app locally by simply opening the index.html file in your browser.
No need for backend or server — it's 100% client-side and privacy-friendly.
- Open
index.htmlin your browser - Click "انتخاب فایل" and upload your
.srtfile containing Persian subtitles - Review or edit the content in the first text box (optional)
- Click "اصلاح و دانلود" to fix and download the reshaped subtitle
- Optionally, copy the output text to clipboard or clear the inputs
CapCut and many other international editors do not support Persian script rendering correctly.
They display disconnected characters that are hard to read. This tool reshapes the text to use appropriate glyph forms from the Arabic Presentation Forms Unicode blocks, ensuring accurate display.
The reshaping logic is handled via pure JavaScript, using Unicode mappings for:
- Isolated, Initial, Medial, Final forms
- Arabic and Persian characters
- Arabic-Indic digits
Subtitles with timestamps and English text are left unchanged.
Feel free to improve, add enhancements (like drag-and-drop, batch files), or internationalize the interface.
Pull requests, issues, and forks are welcome! If you find a bug or want to add a feature, don’t hesitate to contribute.
Made with ❤️ by Saeedeshon Inspired by subtitle formatting issues in Persian video production.