MX Lookup
Sort pasted MX records by priority and list their mail hosts.
Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.
MX Lookup
How to use this tool
- Enter your values in the fields above.
- Press Generate to see the result.
- Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.
Worked example
Records 20 mail2 and 10 mail1 sort to 10 mail1 first, then 20 mail2.
What this tool does not do / Limits
This tool only reads the record lines you paste. It performs no live DNS lookup and cannot prove which mail server a domain actually uses today.
Frequently asked questions
Is this a live DNS lookup?
No. You paste the records; this page never queries DNS.
Why sort by priority?
Lower MX priority numbers are tried first, so the sorted list shows the order in the pasted text.
Related tools
JSON Studio
Format, validate, minify, query and compare JSON in your browser, with precise line-and-column errors.
LiveRegex Tester
Test patterns against sample text with match highlighting, capture groups and a safe one-second timeout.
LiveSecurity Header and DNS Checker
Check HSTS, CSP and other security headers, TLS details, and DNS/email authentication records (SPF, DKIM, DMARC).
Live