🧾 PDF 转 CSVPDF to CSV Converter
把 PDF 里的表格转换成 CSV:优先按 PDF 自带的表格结构分行分列,没有结构时按文字位置推断,可选逗号、分号或制表符分隔,默认带 UTF-8 BOM,Excel 打开中文不乱码;可去掉数字里的千分位逗号,所有页合并成一个 CSV 或每页一个,转换前可预览。全部在浏览器本地完成。Convert tables in a PDF to CSV — rows and columns come from the PDF's table tags when present, otherwise from text positions, with comma, semicolon or tab delimiters and a UTF-8 BOM so Excel opens accented and non-Latin text correctly. Optionally strip thousands separators from numbers, and get one CSV for all pages or one per page, with a preview. Everything runs locally in your browser.
使用说明与常见问题How-to & FAQ
「PDF 转 CSV」是什么?What is the PDF to CSV Converter?
把 PDF 里的表格转换成 CSV:优先按 PDF 自带的表格结构分行分列,没有结构时按文字位置推断,可选逗号、分号或制表符分隔,默认带 UTF-8 BOM,Excel 打开中文不乱码;可去掉数字里的千分位逗号,所有页合并成一个 CSV 或每页一个,转换前可预览。全部在浏览器本地完成。Convert tables in a PDF to CSV — rows and columns come from the PDF's table tags when present, otherwise from text positions, with comma, semicolon or tab delimiters and a UTF-8 BOM so Excel opens accented and non-Latin text correctly. Optionally strip thousands separators from numbers, and get one CSV for all pages or one per page, with a preview. Everything runs locally in your browser.
如何使用「PDF 转 CSV」?How do I use the PDF to CSV Converter?
在「PDF 转 CSV」中,选择或拖入文件,按需设置「分隔符」、「页码(留空为全部)」等选项,然后点击「转换为 CSV」、「全部下载为 ZIP」按钮即可。加密的 PDF 会提示输入密码(出现「打开密码」栏和「打开」按钮),输入密码并点「打开」后再继续。Choose or drop a PDF, pick the delimiter and, if you only need some pages, enter them under "Pages". Click "Convert to CSV", then download the file, or all files as one ZIP when you make one CSV per page. For an encrypted PDF, enter the password and click Open first.
Excel 打开 CSV 中文乱码怎么办?Why does Excel show garbled characters?
默认勾选“加 UTF-8 BOM”,Excel 会据此按 UTF-8 读取,中文、日文和带重音的字母都能正常显示。导入数据库或程序时如果不需要 BOM,可以取消勾选。"Add UTF-8 BOM" is ticked by default so Excel reads the file as UTF-8 and accented or non-Latin text displays correctly. Untick it if a database or script you import into doesn't expect a BOM.
什么时候用分号或制表符?When should I use semicolons or tabs?
德语、法语等地区的 Excel 用逗号作小数点,默认按分号分列,这时选“分号”可以直接双击打开;数据本身含有很多逗号时选“制表符”最省心。含有分隔符、引号或换行的单元格会按 CSV 标准自动加双引号。Excel in many European locales uses a comma as the decimal mark and expects semicolons, so choose Semicolon there to open the file with a double-click. Tab is easiest when the data itself contains lots of commas. Cells containing the delimiter, quotes or line breaks are quoted automatically per the CSV standard.
“防止公式注入”有什么用?What does the formula guard do?
PDF 里以 = + - @ 开头的文字在 Excel 里可能被当成公式执行。勾选后会在这类文字前加一个单引号,让它作为普通文本显示;普通数字(例如 -12)不受影响。Text starting with = + - @ can be run as a formula when the CSV is opened in a spreadsheet. With the guard on, such text gets a leading apostrophe so it shows as plain text; ordinary numbers such as -12 are left alone.
表格能准确识别吗?How accurate is table detection?
如果 PDF 带有表格结构标记(Word、Excel、浏览器“打印为 PDF”等导出的带标签 PDF),会直接按原表格的行、列、合并单元格还原,单元格内换行保留在同一格内。没有标记的 PDF 则根据文字坐标推断行列,对排列整齐的报表、账单、价目表效果最好,复杂版式可能需要手动调整。被分页截断的行会分成两行。多页 PDF 默认合并为一个 CSV,页与页之间空一行。If the PDF carries table structure tags (tagged PDFs exported from Word, Excel or a browser's Print to PDF), rows, columns and merged cells are taken from the original table, and line breaks inside a cell stay in that cell. For untagged PDFs, rows and columns are inferred from text positions, which works best for neatly aligned reports, statements and price lists; complex layouts may need tidying. A row that is cut by a page break comes out as two rows. A multi-page PDF becomes one CSV by default, with a blank line between pages.
扫描件可以转换吗?Can scanned PDFs be converted?
本工具读取 PDF 自带的文字层,不做 OCR 文字识别。扫描件或纯图片 PDF 没有文字层,会提示“没有找到可提取的文字”;这种情况需要先用 OCR 软件识别。This tool reads the PDF's built-in text layer and does not perform OCR. Scans and image-only PDFs have no text layer, so you'll see "No extractable text found"; run them through OCR software first.
加密的 PDF 可以处理吗?Can it handle password-protected PDFs?
可以。如果 PDF 需要打开密码,会提示你输入;只有权限限制(无打开密码)的文件会自动打开。输出文件不再带密码,如需加密请使用“PDF 加密”工具。Yes. If the PDF needs an open password you'll be asked for it; files with only permission restrictions open automatically. The output is not password-protected — use the Protect PDF tool if needed.
文件会上传到服务器吗?Are my files uploaded?
不会。PDF 在你的浏览器里用 pdf-lib / pdf.js 处理,文件不会离开你的设备,关闭页面后不留存任何数据。No. The PDF is processed in your browser with pdf-lib / pdf.js; files never leave your device and nothing is kept after you close the page.
「PDF 转 CSV」免费吗?需要注册吗?Is the PDF to CSV Converter free? Do I need an account?
「PDF 转 CSV」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The PDF to CSV Converter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.