Text Encoding Converter
Your input stays in your browser and is never sent.Convert the character encoding of text and log files. Supports Shift_JIS, UTF-8 and EUC-JP.
What the text encoding converter can do (Shift_JIS, UTF-8, EUC-JP)
This text encoding converter changes the character encoding of text and log files between Shift_JIS, UTF-8 (with or without BOM), EUC-JP and JIS. It detects the encoding of each file you load and shows a preview of the contents. If the preview reads correctly, the detection is right and the conversion will not produce mojibake. You can load several files at once and download them individually or all together. No sign-up, and it's free.
How to convert text encoding in three steps
- Drag and drop your text or log files (.txt, .log, .csv, .json and similar). Several at a time is fine.
- Check the detected encoding and the preview, then choose the encoding you want to convert to.
- Press "Convert encoding" and download the converted files.
Choosing the right encoding to fix mojibake
When you are unsure which target to pick, ask what will open the file next; the answer decides the encoding. If nothing in particular comes to mind, UTF-8 is the safest default and is read correctly by virtually every current tool and programming language.
Use UTF-8 with BOM when Excel shows garbled characters
Windows Excel assumes Shift_JIS for a UTF-8 file that carries no marker, which is why the text comes out garbled. Saving as UTF-8 with BOM adds a short marker that says "this is UTF-8", and the file then opens correctly on a double-click.
Telling EUC-JP and Shift_JIS apart in email and log files
Older logs from Unix and Linux servers are usually EUC-JP, files of Windows origin are usually Shift_JIS, and email bodies are often JIS (ISO-2022-JP). You do not need to memorise this: pick whichever option makes the preview readable.
Converting CSV encodings or line break codes
Both tools run entirely in your browser.
- CSV Encoding ConverterFix CSV files that Excel garbles, tuned for that workflow.
- Line Break ConverterIf lines run together or show stray characters, unify CRLF, LF and CR.
Why SOKUFU's text encoding converter is safe
Many online tools upload your files to an external server for processing. This tool never sends your text files to a server: everything happens inside your browser, so there is no risk of leaks in transit or from storage on a server.
Text encoding converter FAQ
Which character encodings are supported?
Shift_JIS (SJIS), UTF-8, UTF-8 with BOM, EUC-JP and JIS (ISO-2022-JP), converted in any direction. The encoding of each file you load is detected automatically.
Can the automatic detection be wrong?
Yes. Very short files, or files with almost no Japanese text, do not give the detector enough to work with. If the preview looks garbled, set the original encoding manually.
Should I choose UTF-8 with or without BOM?
Choose with BOM if you will double-click the file open in Windows Excel. Choose without BOM for programs, text editors, and anything going to Mac or Linux, where a leftover BOM shows up as an invisible character at the start of the first line and can break parsing.
Do you support converting to EUC-JP?
Yes. Browsers cannot natively write Shift_JIS or EUC-JP, so few in-browser converters offer them. This tool carries its own conversion logic, so it can write EUC-JP without sending anything to a server.
Can I convert several files at once?
Yes. Load as many files as you like; each one is detected separately and then converted to the target you chose. Download them one at a time or all at once.
Are my files uploaded to a server?
No. Loading, detection, conversion and saving all happen inside your browser, so even files containing business or personal data never leave your device.
Related tools
- Character CounterCount characters, lines, manuscript pages and bytes as you type. Your text never leaves your browser.
- Image to Text (OCR)Extract text from photos, screenshots and scanned images. Works with Japanese and English. Your image is processed in your browser and never uploaded.
- Handwriting to TextRead the text in photos of handwritten memos and notes and turn it into editable text. Your image is processed in your browser and never uploaded.
- Fullwidth / Halfwidth ConverterConvert between fullwidth and halfwidth characters. Also supports katakana-hiragana conversion for data cleanup.
- Line Break ConverterConvert between CRLF, LF and CR. Detects the current line endings and unifies mixed ones.
- Sort LinesSort lines alphabetically, naturally or by length. Also removes duplicate and empty lines.
- Line Break RemoverStrip the stray line breaks you get when copying out of a PDF, Word file, or email.
- Vertical Text GeneratorStack text one character per line for social posts, and preview true vertical writing.
- Acrostic Poem GeneratorTurn a name or word into one line per letter and write your own acrostic poem.
- JSON Formatter & ValidatorPretty-print or minify JSON and see syntax errors by line and column. Includes a tree view.
- Text Diff CheckerSee the differences between two texts, highlighted by line and character. Accept either side for each change.
- Japanese Era ConverterConvert between Western years and Japanese eras (Reiwa, Heisei, Showa, Taisho, Meiji), with an age reference table.
- Password GeneratorGenerate strong, random passwords instantly. Customize length, character types, and check strength.
- CSV Encoding ConverterChange a CSV file's character encoding to UTF-8, Shift_JIS and more. Fixes garbled text when Excel opens the file.
- Compare CSV FilesCompare two CSV files and pull out the differences. Match rows on a key column and see added rows, removed rows and changed cells colour-coded.
- Typing Speed TestType short English sentences for 30 or 60 seconds and get your WPM, accuracy and number of mistakes. Each letter turns green or red as you type. Free, no sign-up.