Pembersih Teks
Bersihkan teks dari spasi berlebih, baris kosong berulang, karakter non-cetak, karakter khusus, tanda kutip kurva, dan tag HTML secara otomatis.
Hasil
- Baris asli
- 0
- Baris hasil
- 0
0 baris dihapus.
Cara kerja
Masukkan data Anda
Isi nilai yang diperlukan, tempel teks Anda, atau unggah file yang ingin diproses.
Lihat hasil seketika
Sebagian besar alat diperbarui secara langsung saat Anda mengetik; beberapa menggunakan satu tombol tindakan.
Gunakan hasil Anda
Salin, unduh, atau bagikan hasil yang dihasilkan — Anda selalu memiliki kendali penuh atas data Anda.
Apa itu Pembersih Teks?
Fix the small annoyances that appear after copying text from spreadsheets, PDFs, emails, logs, or generated output.
How to clean text and organize lines
Whitespace clean-up
"Trim each line" removes spaces from both ends of every line. "Remove trailing whitespace only" removes spaces from the end while keeping indentation at the start, which matters for code, nested lists, and Markdown.
Convert tabs to spaces when text needs consistent alignment, and collapse multiple spaces when pasted content has awkward gaps between words.
Lines, accents, and replacement
Empty-line removal drops blank lines after trimming rules have run. Duplicate-line removal keeps the first exact occurrence and removes later repeats.
Remove accents when you need plain Latin text for search keys, slugs, or legacy systems. Find and replace works with literal text by default, and can switch to regex when you need a pattern.
Sorting and shuffling
A-Z and Z-A use locale-aware text sorting. Numeric sorting looks for the first number in each line, which is helpful for lists such as item 2, item 10, and item 20. Random shuffling is useful for quick sampling or mixing a list.
How to use it well
- Paste text, or drop a text file, into the input box.
- Turn on one or two options first, then add more if the result still needs work.
- Use the line counts to check whether empty or duplicate lines were removed as expected.
- Review regex replacements carefully before copying the final result.
- Choose Copy to copy the cleaned result.
Content handling
The output changes live as options are selected. Keep the original nearby until you have checked that the combined clean-up steps did exactly what you intended.
Pertanyaan yang Sering Diajukan (FAQ)
What's the difference between the two whitespace options?
"Trim each line" removes whitespace from both ends. "Remove trailing whitespace only" removes it only from the end, preserving leading indentation, which matters for code or nested lists.
In what order are the options applied?
Find and replace runs first, then accents are removed, tabs convert to spaces, whitespace is trimmed or collapsed, empty and duplicate lines are removed, and sorting or shuffling runs last.
Are duplicate lines case-sensitive?
Yes. Duplicate removal compares exact lines after the selected clean-up steps have run, so Apple and apple are treated as different lines unless another option changes them first.
What does numeric sorting look at?
It uses the first number found in each line. Lines without a number are placed after numbered lines, then sorted alphabetically among themselves.
What happens if my regex is invalid?
The replacement step is skipped and the rest of the clean-up still runs, so you can fix the pattern without losing the input.
Can I keep indentation but remove messy spaces?
Yes. Use "Remove trailing whitespace only" instead of "Trim each line" when leading spaces are meaningful.
Alat Terkait
- TersediaLokal
Penghitung Karakter, Kata & Paragraf
Hitung jumlah karakter, kata, baris, dan estimasi waktu baca teks secara langsung.
- TersediaLokal
Pengonversi Huruf Teks
Ubah format huruf teks menjadi uppercase, lowercase, title case, camelCase.
- TersediaLokal
Pemeriksa Perbedaan Teks
Bandingkan dua teks atau kode dan sorot perbedaan baris demi baris.
- TersediaLokal
Generator Slug URL Bersih & Ramah SEO
Ubah judul atau teks artikel menjadi slug URL yang bersih, terformat rapi, dan ramah SEO.
- TersediaLokal
Pratinjau Markdown
Tulis dan pratinjau dokumen Markdown secara langsung dengan ekspor HTML.
- TersediaLokal
Penghasil Teks Lorem Ipsum
Hasilkan paragraf, kalimat, atau kata placeholder dummy teks.
- TersediaLokal
Pemeriksa Karakter Unicode
Periksa codepoint Unicode, byte UTF-8/UTF-16, dan properti karakter.
- TersediaLokal
Kalkulator Keterbacaan Teks
Ukur skor kemudahan membaca teks (Flesch Reading Ease, Gunning Fog).
- TersediaLokal
Pengekstrak Alamat Email & Tautan URL
Ekstrak semua alamat email dan URL web dari teks acak, dokumen, atau kode sumber.
- TersediaLokal
Pemeriksa Perbandingan Dua Daftar
Bandingkan dua daftar item untuk menemukan irisan, selisih, dan duplikat.