Toolvana: production-ready media tools platform (CodeIgniter 4)

- 134-tool registry with programmatic SEO (unique titles/H1/descriptions,
  JSON-LD graphs, sitemap index, canonical 301 enforcement via required filter)
- DB-backed job queue (SKIP LOCKED) with drivers: Ffmpeg, Images (GD),
  Pdf (qpdf/gs/poppler), Youtube (thumbnails), Qr (server-side PNG)
- Security: SSRF guard, MIME validation, rate limits, API-key auth,
  bcrypt admin login, security headers
- Admin panel: dashboard, tools/categories/guides CRUD, SEO audit,
  analytics, job inspector with retry, system health, feature flags
- Docker deployment (nginx + web/api FPM pools + scalable workers),
  PHPUnit suite (19 tests / 1139 assertions), PWA manifest + service worker
This commit is contained in:
deepseek
2026-08-23 07:10:30 +00:00
commit beaf0e1f37
217 changed files with 19619 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
---
slug: how-to-compress-video
title: "How to Compress Video Files Without Losing Quality"
excerpt: "Why video files get huge, which settings actually shrink them, and how to hit email and upload limits every time."
seo_title: "How to Compress Video Online Reduce File Size Guide"
seo_description: "Learn how to compress large video files online: CRF quality explained, resolution and codec advice, and how to fit under upload limits."
date: "2025-11-16"
tools: ["video-compressor", "video-resizer", "mp4-to-webm"]
---
A ten-minute phone recording can easily exceed 1 GB. Compression fixes that — but doing it *well* means understanding which knob actually turns the size.
## What makes video files large?
Three factors multiply together:
1. **Resolution** — four times the pixels means roughly four times the data.
2. **Bitrate / quality target** — how generously each frame is described.
3. **Codec efficiency** — H.264, HEVC and VP9 pack the same visual content very differently.
Duration scales everything linearly, but you rarely want to cut footage just to save space.
## The one setting that matters: CRF
Modern encoders use a *constant rate factor* (CRF) — a quality target rather than a fixed bitrate. Lower numbers mean better quality and bigger files:
| CRF | Result |
|---|---|
| 18 | Visually identical to source |
| 23 | Default; excellent for most content |
| 28 | Noticeably smaller; fine for screen recordings |
| 33+ | Aggressive; acceptable for talking-head clips |
Our [Video Compressor](/video-compressor) exposes this as a simple "smaller / balanced / sharper" choice and maps it internally to sane CRF values.
## Practical recipe by goal
- **Under a 25 MB email limit** — compress at 28 CRF, then [resize](/video-resizer) to 720p if still over.
- **Faster web playback** — convert MP4 to [WebM](/mp4-to-webm); VP9 typically saves another 2030%.
- **Archive copy** — 20 CRF, keep original resolution, accept the larger file.
## Common mistakes
- Compressing an already-compressed file repeatedly: each generation softens detail. Keep the original master.
- Dropping resolution when the problem is bitrate: a sharp 720p beats a mushy 1080p on phones.
- Ignoring audio: stereo 320 kbps audio in a voice memo is wasted megabytes.
## FAQ
**How much smaller can I expect?**
Screen recordings often shrink 6080%. Camera footage with heavy motion compresses less — motion is expensive to describe.
**Will compression re-encode my audio?**
Yes, to efficient AAC — transparent for almost all content.
**Is there a file-size cap?**
Uploads are capped per tool (the site default is generous; see the limits shown on each tool page).
@@ -0,0 +1,49 @@
---
slug: how-to-convert-webp-to-jpg
title: "How to Convert WebP to JPG (and When You Should)"
excerpt: "WebP images fail in older software and some workflows. Here is how to convert them to JPG or PNG quickly, plus when to convert the other way."
seo_title: "How to Convert WebP to JPG Free Online Converter Guide"
seo_description: "Convert WebP images to JPG online in seconds. Learn why sites save WebP, which software struggles with it, and how to batch-fix downloads."
date: "2025-11-21"
tools: ["webp-to-jpg", "jpg-to-webp", "webp-to-png"]
---
Save an image from a website lately? Chances are it arrived as `.webp` — and then refused to open in your photo printer, CMS or ancient image viewer. Converting takes seconds once you know why this happens.
## Why everything is WebP now
Google designed WebP to make pages faster: identical-looking images are typically 2535% smaller than JPEG. Browsers adopted it enthusiastically, so servers now serve it by default. The catch is that plenty of non-browser software — older Office versions, some printers, certain editing tools — never caught up.
## Convert in three steps
1. Open [WebP to JPG](/webp-to-jpg).
2. Drop your files onto the upload area.
3. Download the JPGs — quality is preserved at 85%, indistinguishable from the source for photos.
Need transparency preserved? Use [WebP to PNG](/webp-to-png) instead; JPG has no alpha channel, so transparent areas would flatten to white.
## Should you ever go back *to* WebP?
If you manage a website: yes. Serving [JPG as WebP](/jpg-to-webp) is free performance — same pixels, smaller transfer, better Core Web Vitals. Keep JPG masters, generate WebP for delivery.
## Quick decision table
| Situation | Best format |
|---|---|
| Opening in old software | JPG |
| Photo with no transparency needs | JPG |
| Logo / graphic with transparency | PNG |
| Website images you serve yourself | WebP |
## Troubleshooting
- **"File could not be read as an image"** — some sites deliver AVIF with a `.webp` extension. Our converter reads actual file content, not just names, so these still work.
- **Colors look slightly different after conversion** — that is wide-gamut color profiles being flattened; acceptable for almost all uses.
## FAQ
**Does converting reduce quality?**
One conversion at high quality (85+) is visually lossless for photographs. Repeated re-saves compound loss, so keep originals.
**Can I convert many at once?**
Yes — drop multiple files; each converts independently.
@@ -0,0 +1,50 @@
---
slug: how-to-convert-youtube-to-mp3
title: "How to Convert YouTube to MP3 (the Right Way)"
excerpt: "Everything about turning YouTube videos into MP3 audio — bitrate choices, quality expectations, legal context and troubleshooting."
seo_title: "How to Convert YouTube to MP3 Complete 2026 Guide"
seo_description: "Step-by-step guide to converting YouTube videos to MP3 audio, including bitrate advice, quality tips and what the law says."
date: "2025-11-09"
tools: ["youtube-to-mp3", "youtube-to-wav", "youtube-to-m4a"]
---
Converting a YouTube video to MP3 is the fastest way to keep lectures, podcasts and interviews in your pocket. This guide explains how the process works, which settings matter, and where the legal lines sit.
## The short version
1. Copy the video link.
2. Open [YouTube to MP3](/youtube-to-mp3) and paste it.
3. Press Convert and wait for the audio track to be extracted.
4. Download the finished MP3.
That is genuinely all there is to it on our side — but a few decisions along the way change your result noticeably.
## Which bitrate should you pick?
MP3 bitrate trades file size against fidelity:
- **128 kbps** — fine for spoken word; audiobooks and lectures sound identical to higher rates here.
- **192 kbps** — a sensible middle ground for music with modest demands.
- **320 kbps** — maximum MP3 quality; overkill for speech, right for archival music rips.
One honest caveat: YouTube itself serves lossy audio streams (usually AAC at roughly 128160 kbps). Converting to 320 kbps cannot add detail that was never there — it just avoids *further* degradation. If you want mathematically untouched audio, use [YouTube to WAV](/youtube-to-wav) instead.
## Is it legal?
Context decides. Ripping your own uploads, or material explicitly released under Creative Commons, is unproblematic. Extracting audio from commercial music you have not licensed conflicts with platform terms in most jurisdictions — the same rules that apply to video downloading. When in doubt, ask the rights holder or use official offline features.
## Common failure causes
| Symptom | Likely cause | Fix |
|---|---|---|
| "Invalid YouTube URL" | Truncated or decorated link | Paste the plain `watch?v=` URL |
| "Video could not be processed" | Private/deleted video | Check the video plays while logged out |
| Audio starts mid-video | Timestamped share link | Remove the `?t=` parameter |
## FAQ
**Why does my file start with silence?**
Some videos embed intro padding. Trim it afterwards with the [audio trimmer](/audio-trimmer).
**M4A instead?**
Yes — [YouTube to M4A](/youtube-to-m4a) skips one re-encoding step because YouTube's source streams are already AAC-based, so quality stays marginally better at similar sizes.
@@ -0,0 +1,56 @@
---
slug: how-to-download-youtube-videos
title: "How to Download YouTube Videos Safely and Legally"
excerpt: "A practical walkthrough of saving YouTube videos for offline use — which tools to use, what the platform rules say, and how to avoid sketchy sites."
seo_title: "How to Download YouTube Videos Safe & Legal Guide"
seo_description: "Learn how to download YouTube videos safely: step-by-step instructions, legal considerations, quality options and common pitfalls explained."
date: "2025-11-02"
tools: ["youtube-downloader", "youtube-video-downloader", "youtube-thumbnail-downloader"]
---
Saving a YouTube video for offline use is a reasonable thing to want — long flights, unreliable connections, archiving your own uploads, or keeping a copy of Creative Commons material you are licensed to reuse. This guide covers how to do it cleanly and within the rules.
## What YouTube's terms actually say
YouTube's Terms of Service allow offline viewing through their official **YouTube Premium** download feature inside the mobile apps. Downloading outside that mechanism can conflict with the platform's terms, so it matters *what* you download and *why*:
- **Your own uploads** — always fine; you own them.
- **Creative Commons licensed videos** — allowed under the license terms.
- **Anything else** — get permission from the rights holder first.
We designed Toolvana around this reality: video download capability ships disabled by default and every operator has to make an explicit, reviewed decision to enable it. The tools that never touch restricted content — [thumbnails](/youtube-thumbnail-downloader), [metadata](/youtube-metadata-viewer), [transcripts analysis](/youtube-transcript) — work out of the box.
## Step by step: saving a video you're allowed to keep
1. Copy the video URL from your browser's address bar.
2. Open the [YouTube Downloader](/youtube-downloader).
3. Paste the link and press Convert.
4. Pick the resolution you actually need — 720p looks fine on most laptops and downloads far faster than 1080p.
5. Save the MP4 file when processing finishes.
## Choosing a quality level
| Resolution | Typical use | Approximate size per minute |
|---|---|---|
| 360p | Reference only | 515 MB |
| 720p | Laptops, tablets | 2560 MB |
| 1080p | Large screens | 50120 MB |
Higher resolution costs time and bandwidth without visible benefit on small screens. When in doubt, start at 720p.
## Common problems and fixes
- *"Video unavailable"* — the video may be private, age-restricted or region-blocked. Private videos cannot be downloaded at all.
- *"This tool is disabled"* — the server operator has not enabled stream downloading. Metadata and thumbnail tools continue working.
- Slow progress on long videos — resolution and duration drive processing time. A two-hour lecture at 1080p takes considerably longer than a three-minute clip.
## Frequently asked questions
**Is it legal to download YouTube videos?**
It depends entirely on the content and jurisdiction. Your own uploads and properly licensed material are safe; commercial content generally requires permission or Premium's official offline mode.
**Can I download just the audio?**
Yes — see our [YouTube to MP3 converter](/youtube-to-mp3), which extracts audio tracks in several formats.
**Do downloads expire?**
Files produced here live for a short retention window (a couple of hours by default) and then vanish from our storage permanently.
@@ -0,0 +1,48 @@
---
slug: how-to-extract-audio-from-video
title: "How to Extract Audio from Any Video File"
excerpt: "Pull clean MP3, WAV or M4A soundtracks out of MP4, MOV and MKV files online — with format advice and quality expectations."
seo_title: "How to Extract Audio from Video Online Free Guide"
seo_description: "Learn how to extract audio from video files online. MP3 vs WAV vs M4A output explained, plus tips for best sound quality."
date: "2025-12-12"
tools: ["extract-audio-from-video", "mp4-to-mp3", "video-to-gif"]
---
Interview recorded on your phone? Lecture saved as a video? The soundtrack is often the only part you need. Extracting it takes one upload.
## Three steps
1. Open [Extract Audio from Video](/extract-audio-from-video).
2. Upload the video — MP4, MOV, MKV and WebM all work.
3. Choose an output format and download the audio file.
For the common case of YouTube-sourced content, our [MP4 to MP3 converter](/mp4-to-mp3) does the same job with format shortcuts on the front page.
## Which output format?
| Format | Best for | File size |
|---|---|---|
| **MP3** | Universal playback, podcasts | Small |
| **M4A/AAC** | Modern devices, better quality per MB | Smaller |
| **WAV** | Editing in Audition/Audacity, sampling | Large (uncompressed) |
| **FLAC** | Archival copies of music videos | Large (lossless) |
Default to MP3 at 192 kbps unless you have a specific reason not to — it plays everywhere and sounds indistinguishable from the source for spoken word.
## What actually happens technically
The extraction demuxes the audio stream from the container and re-encodes it to your chosen codec. Two consequences worth knowing:
1. **Quality cannot improve.** If the source carries 128 kbps AAC, that is your ceiling. Choose matching bitrates rather than inflating numbers.
2. **Video tracks are discarded**, so files shrink dramatically — an hour-long lecture drops from hundreds of megabytes to tens.
## Common questions
**Can I extract just part of the audio?**
Yes — trim the video first with the [video cutter](/video-cutter), then extract; or extract everything and cut the audio with the [audio cutter](/audio-cutter).
**Why is my extracted audio silent?**
Some videos genuinely carry no audio track (timelapses, some dashcam loops). Our tool detects this and reports it instead of producing an empty file.
**Does it work with multiple audio tracks?**
MKV files sometimes hold several language tracks; the primary track is extracted by default.
+51
View File
@@ -0,0 +1,51 @@
---
slug: how-to-merge-pdf-files
title: "How to Merge PDF Files Into One Document"
excerpt: "Combine scans, contracts and statements into a single ordered PDF — plus page-order tricks and privacy notes."
seo_title: "How to Merge PDF Files Online Free & Private"
seo_description: "Merge multiple PDF files into one document online for free. Reorder pages, keep quality, and learn how private the process really is."
date: "2025-12-18"
tools: ["pdf-merger", "pdf-splitter", "pdf-page-extractor"]
---
Merging PDFs is the most common document chore there is: scanned pages that arrived separately, a contract split across three emails, statements needing one combined archive. Here is the fast path.
## Merging in four steps
1. Open the [PDF Merger](/pdf-merger).
2. Upload your first file — then add the rest; upload order becomes page order.
3. Press Merge.
4. Download the combined document.
Files are stitched with qpdf, a battle-tested open-source engine. Output keeps original page quality — no re-compression unless you ask for it separately.
## Getting page order right
The most common mistake: uploading files alphabetically when the intended order differs. Two fixes:
- **Rename before uploading** (`01-scan.pdf`, `02-scan.pdf` ...).
- Or merge first, then reorder by extracting page ranges with the [PDF Page Extractor](/pdf-page-extractor) and re-merging.
## When to split instead of merge
Sometimes the opposite job is needed. The [PDF Splitter](/pdf-splitter) breaks a document into single-page files (zipped), which suits:
- Distributing individual chapters
- Pulling one signed page from a packet
## Privacy notes worth knowing
- Merged documents exist on our workers only during processing and expire automatically afterwards.
- Merging never adds identifying metadata — but source files may carry some. Run [PDF Metadata Remover](/pdf-metadata-remover) on sensitive output.
- Nothing you merge is readable by other users; jobs are isolated per session.
## FAQ
**Is there a page or file limit?**
Practical limits come from total upload size rather than file count — dozens of typical documents merge fine.
**Do bookmarks and form fields survive?**
Bookmarks flatten during merging (page content is preserved perfectly). Interactive form fields survive when they live on the pages being merged.
**Why does my merged file look rotated?**
Individual scans often carry inconsistent rotation flags. Rotate pages at the source scanner, or rasterize-and-rebuild via [PDF to JPG](/pdf-to-jpg) then [JPG to PDF](/jpg-to-pdf).
@@ -0,0 +1,61 @@
---
slug: how-to-reduce-video-size
title: "How to Reduce Video Size for Email, Discord and Uploads"
excerpt: "Platform size limits decoded — email attachments, Discord uploads, WhatsApp and Loom caps — with the exact settings to hit each one."
seo_title: "How to Reduce Video Size Hit Every Upload Limit"
seo_description: "Shrink videos under email, Discord and WhatsApp limits. Resolution, bitrate and codec settings that cut file size without wrecking quality."
date: "2025-11-28"
tools: ["video-compressor", "video-cutter", "video-resolution-converter"]
---
Every platform has a ceiling. Here are the current common limits and the fastest way to get under each.
## The limits that matter in 2026
| Platform | Limit | Notes |
|---|---|---|
| Gmail / Outlook | 25 MB attachment | Drives most compression needs |
| Discord (free) | 10 MB per file | Brutal for video |
| WhatsApp | 16 MB (status), 2 GB (document share) | Document route is generous |
| Telegram | 2 GB free | Rarely a constraint |
| Loom free tier | 5 minutes / 25 MB-ish effective | Compress or trim |
## Strategy 1: trim before you compress
The cheapest megabytes are the ones you delete. Cutting a rambling intro from a screen recording saves proportionally more than any codec trick. Use the [Video Trimmer](/video-trimmer) first — it copies streams when possible so quality stays untouched.
## Strategy 2: match resolution to destination
Nobody needs 4K inside an email:
- **Chat apps** — 720p is plenty on phones.
- **Email previews** — even 540p reads fine.
- **Documentation embeds** — 1080p keeps text crisp.
Our [resolution converter](/video-resolution-converter) scales while preserving aspect ratio automatically.
## Strategy 3: compress last
With content trimmed and resolution matched, run the [Video Compressor](/video-compressor):
- **Balanced preset** handles most cases.
- **Smaller** preset suits static screen recordings — they compress spectacularly.
- **Sharper** preset only when fine text must stay readable.
## Worked example
A 340 MB, 8-minute 4K screen recording destined for email:
1. Trim to 6:40 of actual content → ~280 MB
2. Scale to 1080p → ~95 MB
3. Compress balanced → **18 MB** ✓ under the 25 MB limit
Total time: about three minutes including processing.
## FAQ
**Why does my compressed video look blocky during motion?**
The quality target is fighting fast movement. Step one preset sharper, or reduce resolution instead — smaller frames hide artifacts better than starved bitrates.
**Does compressing remove metadata?**
Re-encoding drops most container metadata naturally. For guaranteed stripping, run [Remove Metadata](/remove-metadata-from-video) afterwards.
@@ -0,0 +1,59 @@
---
slug: mp3-vs-m4a-which-is-better
title: "MP3 vs M4A: Which Audio Format Should You Use?"
excerpt: "Two dominant lossy audio formats, one honest comparison — compatibility, quality per megabyte, and the use cases where each wins."
seo_title: "MP3 vs M4A Which Audio Format Is Better in 2026?"
seo_description: "MP3 or M4A? Compare sound quality, file size, device support and streaming use to pick the right audio format for your library."
date: "2025-12-05"
tools: ["mp3-to-m4a", "m4a-to-mp3", "audio-converter"]
---
The MP3-vs-M4A question usually appears at the worst moment: an export dialog asking you to choose. Here is the honest breakdown.
## The 30-second answer
- **Maximum compatibility** (old cars, ancient hi-fi, random hotel radios) → **MP3**
- **Modern devices, smaller files, Apple ecosystem** → **M4A**
Both are lossy formats — they discard audio information humans mostly cannot hear. Neither "loses quality" audibly at sensible bitrates.
## Quality per megabyte
M4A (which carries AAC audio) was designed as MP3's successor:
| Bitrate | Verdict |
|---|---|
| 128 kbps AAC | ≈ transparent for most listeners |
| 128 kbps MP3 | Audible softness on complex music |
| 192 kbps MP3 | Matches 128 kbps AAC roughly |
| 320 kbps MP3 | Overkill except archival |
Rule of thumb: at equal bitrate, M4A sounds a notch better; at equal quality, M4A is 2530% smaller.
## Compatibility reality check
MP3's superpower is ubiquity — it decodes on everything with a speaker, including things older than your career. M4A plays on every phone and computer sold this decade, every current car system, all major consoles. What it *doesn't* play on: that 2003 aftermarket head unit.
## When each format wins
**Choose MP3 when:**
- The file must survive contact with unknown hardware.
- You email audio to non-technical people.
- Target platforms demand it (some podcast directories historically did).
**Choose M4A when:**
- Files live on modern phones and computers.
- Storage space matters (offline lecture libraries).
- You are in the Apple ecosystem (iTunes/Apple Music native).
## Converting between them
Already committed to the wrong format? [M4A to MP3](/m4a-to-mp3) and [MP3 to M4A](/mp3-to-m4a) conversions take seconds. One warning applies both directions: converting lossy→lossy always re-encodes, so keep original masters of anything precious.
## FAQ
**Is FLAC better than both?**
FLAC is lossless — different category entirely. Use it for archiving masters; use MP3/M4A for everyday listening. Our [FLAC converter](/flac-to-mp3) bridges the worlds.
**What about WAV?**
Uncompressed production format. Huge files, no tagging niceties — an editing intermediate, not a listening format.