Batch File Encoding Converter
Batch convert the encoding format of text files, supporting conversion between multiple encodings such as UTF-8, GBK, and GB18030, automatically detecting the source encoding to solve garbled text issues.
Browser execution mode: Your data is processed in your browser and is not uploaded to the server.
Speed and Stability: Processing speed depends on your device and browser. For large batch work, the desktop version may be more stable.
Loading tool, please wait...
If the online tool fails to load or run, try the desktop tool.https://tools.yikeaigc.com/
Tool Usage
Return to old versionClick to choose files, or drag and drop them here
Supports TXT, CSV, subtitles, HTML, JSON, XML, Markdown, logs, and code-like plain text files. Multiple files allowed.
Auto-detect works for most text. If the preview is garbled, choose the source encoding here.
Target encoding controls the downloaded file bytes. Use UTF-8 BOM for CSV in spreadsheet apps.
Prefer Chinese text leans toward GB18030 at low confidence, ideal for common Chinese mojibake fixes.
Encoding conversion, detection, and ZIP packaging all use locally loaded frontend libraries.
When UTF-8 BOM is selected as the target encoding, a UTF-8 BOM will be added.
For cross-system collaboration, choose LF or CRLF. Subtitles and code files often use LF.
Preview shows only part of the content and does not affect full file conversion.
Multiple files will be downloaded as a ZIP. Output filenames match originals by default; duplicates get numbers.
Instructions
Software Usage Instructions
- Add files: Click the upload area or drag files onto the page. Plain text files such as TXT, CSV, SRT, HTML, JSON, XML, MD, LOG, INI, and code files are supported. When multiple files are selected, the first 20 are shown in the list, but all files are included during processing.
- Use sample data: Load UTF-8 text, GBK CSV, or subtitle samples to get familiar with the detection, preview, and conversion process.
- Set encoding scheme: Select a common scheme in the “Encoding” tab, or manually set the source and target encodings. Source encoding supports automatic detection; target encoding supports formats such as UTF-8, UTF-8 BOM, GBK, GB18030, Big5, Shift_JIS, and UTF-16.
- Configure processing options:
- BOM settings: Add a BOM according to the target encoding, or specify UTF-8 BOM, UTF-16 BOM, or no BOM.
- Line break settings: Keep as is, or normalize to LF, CRLF, or CR.
- Text cleanup: Remove source file BOM, trim trailing whitespace, skip suspected binary files, and keep or skip empty files.
- Download parameters: Set the number of preview characters and the ZIP archive file name.
- Preview content: After entering the “Convert” tab, select a file to view the source content and converted text preview. If the preview appears garbled, return to the “Encoding” tab and manually specify the source encoding.
- Start conversion: After confirming the files, encodings, and options, click “Start Conversion and Generate Results”. The processing log will show each file’s source encoding, target encoding, output file name, and processing status.
- Download results: A single file can be downloaded directly; multiple files will be packaged as a ZIP. The output file name matches the original file name by default. If duplicate names occur, a number will be automatically appended to the file name.
FAQ
Related Tools
File Filter Tool by Text Character Count
Filter files that meet the criteria from multiple documen...
URL Batch Filtering and Processing Tool
Batch extract URLs from TXT text, filter and deduplicate ...
Batch Separate Compression Tool
Compress files or folders into ZIP files by project, with...