Fix subtitle timing in seconds β single files or entire folders, with a clean modern GUI.
You download a movie subtitle file and the text is always 0.5 seconds too early or 2 seconds too late. Every single line. Fixing them one by one is impossible.
SRT Subtitle Sync Tool shifts all timestamps in one click.
| Feature | Details |
|---|---|
| β±οΈ Precise timing | Adjust by any amount β e.g. -0.5, +2, -1.3 seconds |
| π Batch processing | Add individual files or scan an entire folder recursively |
| π Quick buttons | One-click presets: -2s, -1s, -0.5s, +0.5s, +1s, +2s |
| πΎ Flexible output | Save with custom suffix, to a different folder, or overwrite original |
| π Safe by default | Creates _Synced copies β never overwrites unless you choose to |
| π Modern dark UI | Built with CustomTkinter |
| π Encoding support | Handles UTF-8, UTF-8 BOM, and Latin-1 (older SRT files) |
| β‘ Non-blocking | Processing runs in a background thread β UI stays responsive |
pip install customtkinterpython main.py- Click Add Files or Add Folder to select your
.srtfiles - Enter the time offset (e.g.
-0.5to shift subtitles 0.5 seconds earlier) - Choose output settings (suffix, folder, or overwrite)
- Click START SYNC π
Coming soon
| Package | Purpose |
|---|---|
customtkinter |
Modern dark-themed GUI |
tkinter |
Built into Python β no install needed |
Everything else (re, threading, pathlib, datetime) is Python standard library.
SRT timestamps look like this:
00:01:23,456 --> 00:01:25,789
The tool finds every timestamp with a regex pattern and shifts it by your specified offset using Python's datetime + timedelta. Negative times are clamped to 00:00:00,000 automatically.
srt-subtitle-sync/
βββ main.py # Full application (single file)
βββ requirements.txt
βββ LICENSE
βββ README.md
Subtitles appear 1 second too late:
- Enter
-1in the time field - Click START SYNC
- Done β all timestamps shifted back by 1 second
Subtitles appear 2.5 seconds too early:
- Enter
+2.5 - Click START SYNC
Contributions welcome! Ideas:
- Support for
.ass/.vttsubtitle formats - Preview before saving
- Auto-detect offset from audio
Fork β feature branch β PR.
MIT License β see LICENSE for details.
Hayder Odhafa / ΨΩΨ―Ψ± ΨΉΨ°Ψ§ΩΨ© GitHub: @Hayder-IRAQ