Paste a TikTok link or drop a video file — download the audio in seconds.
⚡
How this works: This tool uses a public proxy API to fetch the TikTok video, then extracts the audio track in your browser using the Web Audio API. No data is stored on any server.
Note: For best results, use the full TikTok video URL. Private or age-restricted videos may not be accessible.
Backend Required for URL Extraction
Due to browser security (CORS), TikTok URLs require a small local backend. Run this one-time setup:
# Install dependencies
pip install yt-dlp flask flask-cors
# Save this as server.py and run: python server.py
from flask import Flask, request, jsonify, send_file
from flask_cors import CORS
import yt_dlp, os, tempfile
app = Flask(__name__)
CORS(app)
@app.route('/extract', methods=['POST'])
def extract():
url = request.json.get('url')
tmp = tempfile.mkdtemp()
opts = {
'format': 'bestaudio/best',
'outtmpl': os.path.join(tmp, '%(title)s.%(ext)s'),
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
}],
'quiet': True
}
with yt_dlp.YoutubeDL(opts) as ydl:
info = ydl.extract_info(url, download=True)
title = info.get('title', 'audio')
files = [f for f in os.listdir(tmp) if f.endswith('.mp3')]
return send_file(os.path.join(tmp, files[0]),
as_attachment=True,
download_name=f"{title}.mp3")
if __name__ == '__main__':
app.run(port=5050)