Introduction
- CSV/XLSX → Cloudflare Zone Converter helps you convert DNS records list (CSV/XLSX or Zone .txt) to standard BIND zone file for import into Cloudflare.
- Cloudflare has a “scan” DNS feature when adding a domain, but it often misses SRV, CAA, TXT (DKIM/DMARC/Verify), specific MX. The most reliable way is to export DNS data from the current provider, convert via this tool, then import into Cloudflare.
When to Use
- Migrate DNS from provider A to Cloudflare.
- Want to sync all advanced records (long TXT, SRV, CAA, NS…).
- Need to export/import in Zone (.txt) format, or standardize CSV/XLSX before import.
Prepare Data (From Provider)
You need to get all DNS records. There are 3 common scenarios in VN:
- Using “standard panel”:
- >cPanel: go to “Zone Editor” > “Manage” to view all records. cPanel doesn't always have an export button. You can:
- Request zone file from provider (ticket).
- Or copy table to Excel then “Save as CSV” by columns: Host,Type,Data,TTL (MX can add Priority).
- DirectAdmin: “DNS Management” sometimes has “Export as Bind file” (depending on config). If available, download .txt/.zone. If not, copy table to CSV.
- Plesk: “Websites & Domains” > “DNS Settings” > “Export DNS zone file” (nếu bật). Tải .txt. Nếu không có, copy bảng sang CSV.
- >cPanel: go to “Zone Editor” > “Manage” to view all records. cPanel doesn't always have an export button. You can:
- Using brand-specific (often customized panel): Mắt Bão, PA Việt Nam, Nhân Hòa, Tenten, iNET, Z.com, VinaHost, AZDIGI, BKNS, DIGISTAR…
- Find “DNS”, “DNS Management” or “Zone/Records” section.
- If has “Export/Backup DNS”, download .txt or .csv.
- If not, open table, select all copy to Excel/Google Sheets, check columns then “Save as CSV”.
- If unavoidable:
- Contact support to request zone file (BIND). This is the fastest and least error-prone way.
CSV Input Tips (tool accepts):
- Column headers: Host,Type,Data,TTL (case insensitive). Priority is optional column for MX.
- TXT: Data có thể có dấu ngoặc kép; tool sẽ tự chuẩn hóa/đặt quote. Ví dụ: “v=spf1 include:mail… ~all”.
- MX: 2 valid ways:
- Has Priority column and Data = mail.domain.com.; or
- No Priority column and Data = 10 mail.domain.com. (tool auto splits).
- SRV: put full “priority weight port target” in Data, e.g. 0 0 443 mail.domain.com..
- NS: if Data has multiple nameservers separated by commas, tool will split into multiple zone lines.
- TTL: if empty, tool defaults to 3600.
Use Tool (csvtozoneconverter.html)
- Input data:
- Select “File” and upload .csv, .xlsx/.xls, .txt/.zone; or
- Select “Paste” and choose type “CSV” or “Zone (.txt)” to paste content directly.
- Click “Convert”.
- View results:
- “Show Zone” to view BIND zone (standard for Cloudflare import).
- “Show CSV” if you want to review in table format.
- Export results:
- “Copy” to copy in current display mode.
- “Download .txt” to get zone file (named like Cloudflare e.g. domain-cloudflare-bind-fixed.txt).
- “Download .csv/.xlsx” if you want to save in table format.
Upload to Cloudflare
- Add domain to Cloudflare (Add a site).
- Go to DNS > Advanced Actions > Import and Export DNS > “Import”.
- Upload the .txt (zone BIND) file that you exported from the tool.
- Check again:
- Full MX, TXT (DKIM/DMARC/Google verify), SRV, CAA, internal NS (if any), PTR (if used) records.
- Turn on/off “Proxy” (orange cloud) as needed for A/CNAME web records. Mail, FTP, SIP… records are usually set to “DNS only”.
- TTL: Cloudflare may change some TTLs to “Auto”. This is normal.
- DNSSEC: reconfigure DNSSEC in Cloudflare (does not move with zone file).
- Point the domain's nameserver to Cloudflare's 2 NS records as instructed.
Why Not Just Use “Scan”
- Cloudflare's Scan misses SRV/CAA/long TXT and other internal records.
- Importing from standardized zone/CSV file preserves all records, avoids email/DKIM/app disruptions.
Supported Record Types
- Supports all common records: A, AAAA, CNAME, MX, NS, TXT, SRV, CAA, PTR…
- Special handling:
- TXT always properly quoted per standard.
- MX intelligently splits Priority.
- Multi-target NS (comma-separated) → multiple zone lines.
- If the record is unusual or has a special format, paste it in Zone format into the tool for safe conversion.
Mẹo & Lưu Ý
- Ensure hostname/target ends with a dot (.) when it's FQDN (e.g. mail.domain.com.). Cloudflare accepts without the dot, but standard BIND usually has it.
- After import, quick test: A, CNAME website; MX/TXT email; SRV service; CAA certificate.
- If XLSX cannot be loaded (CDN blocked), use CSV.
Do you need me to add detailed instructions for the specific panel you're using (e.g. screenshots step by step for Mắt Bão/PA/DirectAdmin/Plesk)?

