Base64를 읽을 수 없을 때
- 확인
- 수정
"Could not read as Base64. Check the characters." is shown and you cannot restore the file. Here are causes and fixes for errors in "Base64 → file" of Convert Files and Base64.
What to check first
- Is the text cut off?: Did you copy everything from start to end?
- Are extra characters mixed in?: Are there explanatory text, quotes or spaces before or after?
- Is the direction right?: Have you chosen "Base64 → file"?
Steps (fixing)
- Check that the text isn't cut off.
- Check that no extra characters are mixed in.
- Paste it into "Base64 text" again.
- Enter a "File name to save" and press "Save as file".
Common causes
- Incomplete copy: only part of a long string was copied.
- Quotes attached: quotes remain before and after the string.
- The "data:…;base64," part: the data URL prefix may cause problems if left on. Remove it and try again.
- Line breaks and spaces: inserted partway. Remove them.
- Full-width characters mixed in: full-width letters and digits can't be used.
- URL-safe Base64: there is a form using "-" and "_" instead of "+" and "/".
- Length doesn't fit: not a multiple of 4. The trailing "=" is missing.
Removing the extra parts
- Delete the quotes or explanatory text before and after
- Delete a leading part like "data:image/png;base64," and keep only the characters after the comma
- Delete line breaks in a text editor
When the saved file won't open
If the Base64 was read but the file won't open, the extension may be wrong. Save again with a file name (extension) that fits the file type.
A useful approach
Try with a short string. Pasting just the first few lines and seeing whether it reads shows where the problem lies.
예
Pasting an API result gave an error. Quotes were attached before and after; after removing them and pasting, it converted.
Common stumbling blocks
- Characters go missing partway: cut by the display limit of the browser or app.
- A file was made but is corrupted: part of the data is missing.
Frequently asked questions
Does it tell me which character is bad?
This tool doesn't show the error location. Check the points above in order.
요약
Check that you copied everything and that there are no extra characters. Try removing the leading data URL part and quotes.
“파일과 Base64 변환” 사용하기 (무료)함께 쓰면 좋은 도구
- 파일 해시(SHA-256) 확인: 파일의 해시를 계산하고 비교합니다.
- CSV와 JSON 변환: CSV와 JSON을 즉시 서로 변환합니다.
- ZIP 파일 만들기: 여러 파일을 하나의 ZIP으로 묶습니다.