Defang a URL, IP, domain or email instantly, or refang defanged IOCs back. CyberChef hxxp/[.] style, bulk paste, 100% in your browser. Free, no signup.
This free URL defanger turns live indicators of compromise into inert text that cannot be clicked, auto‑linked, or accidentally fetched. Paste a single malicious link or an entire incident report and the tool rewrites every URL, IP address, domain and email address it finds — https://evil.com/payload.exe becomes hxxps[://]evil[.]com/payload[.]exe, and 192.168.1.100:8080 becomes 192[.]168[.]1[.]100[:]8080. The same tool runs in reverse: paste defanged text and it refangs the indicators back to their original, working form.
Everything happens inside your browser using client‑side JavaScript. The text you paste is never uploaded to a server, never logged and never stored, which matters when the material you are handling is a live phishing report, a customer’s email header dump, or an internal malware analysis note. There is no account, no rate limit and no file‑size gate on ordinary paste‑sized input.
Defanging is the practice of breaking the syntax of a malicious indicator just enough that software stops treating it as an actionable address, while a human can still read it. Email clients, ticketing systems, chat apps, wikis and PDF viewers all auto‑link anything that looks like a URL. A single misplaced click in a SOC ticket can send an analyst’s browser — and their corporate IP address — straight to an attacker’s infrastructure, tipping off the adversary or triggering a drive‑by download. Worse, some security appliances and link‑preview crawlers fetch URLs automatically the moment a message is delivered, which can burn a live investigation before an analyst has even read it.
Defanging solves this by mangling the three characters that make an indicator machine‑actionable: the scheme (http/https), the dot separators in hostnames and IPv4 addresses, and the @ in email addresses. The convention grew out of mailing lists such as Full Disclosure and the SANS Internet Storm Center, and is now standard practice in CERT advisories, MISP events, VirusTotal comments and vendor threat reports.
Different teams and tools expect different conventions, so this defanger offers three, selectable from the Style dropdown.
The most widely recognised convention, matching what CyberChef’s “Defang URL” operation produces. The scheme is rewritten with an x, the scheme separator and dots are bracketed, and port colons are bracketed too:
https://malware.example.com/beacon → hxxps[://]malware[.]example[.]com/beaconinvoice@spam-domain.com → invoice[@]spam-domain[.]com203.0.113.45:443 → 203[.]0[.]113[.]45[:]443Keeps the scheme readable and only brackets the separators — preferred by teams who want the protocol to remain obvious in a report:
http://evil.com/login.php → http[:]//evil[.]com/login[.]phpSpells the separators out in words so that even aggressive auto‑linkers and copy‑paste rehydration cannot reconstruct the address:
https://evil.com → h**ps[PROTOCOL]evil[DOT]comadmin@evil.com → admin[AT]evil[DOT]comThe refang direction understands all three styles at once, so you can paste mixed‑convention text harvested from several vendor reports and get consistent, working indicators back.
hxxp, [.], [DOT], [@], h**p) and picks the right direction automatically. Turn it off and use the Defang / Refang buttons if you want to force a direction..txt file, or use the swap button (⇆) to push the output back into the input box and reverse the operation. A shareable link button encodes your input into the URL so a colleague opens the same conversion.Three preset examples — a phishing report, a malware analysis note and a block of already‑defanged IOCs — load with one click if you just want to see the behaviour before pasting real data.
IP defanging follows the same dot‑bracketing rule as domains, because an IPv4 literal is auto‑linked by exactly the same parsers. 10.20.30.40 becomes 10[.]20[.]30[.]40, and a scheme‑prefixed IP such as http://192.168.1.100:8080/beacon becomes hxxp[://]192[.]168[.]1[.]100[:]8080/beacon in CyberChef style. The port colon is bracketed separately so that [:]8080 survives round‑tripping without being mistaken for the scheme separator. IPv6 literals in a report are counted by the indicator statistics, though their colon‑separated notation is already far less likely to be auto‑linked than IPv4. If you need to normalise or expand an address before sharing it, the IP geolocation lookup and subnet calculator pair well with this workflow.
Refanging is the step analysts actually spend time on. A vendor PDF or an ISAC bulletin arrives full of hxxps[://] and [.], and none of it can be pasted into a sandbox, a SIEM query, a firewall block list or a threat‑intel platform until the indicators are restored. Paste the defanged block here, let auto‑detect flip the direction, and copy out clean, greppable indicators. Because the refang pass handles CyberChef, bracket and aggressive markers in a single sweep, you do not need to know which tool produced the source text. From there you can pivot straight into a reputation check on the IP, resolve the host with the DNS lookup tool, or check a sample hash against the hash lookup.
Defanging a URL means rewriting it so software no longer recognises it as a working address, while a person can still read it. In practice the scheme is changed (http to hxxp) and the dots are wrapped in brackets (example.com to example[.]com), which stops mail clients, chat apps and ticket systems from turning it into a clickable link.
Replace each dot with [.]: 203.0.113.45 becomes 203[.]0[.]113[.]45. If a port is attached, the colon is bracketed too — 203[.]0[.]113[.]45[:]443. Paste the address above and the tool does it for you, along with every other indicator in the same block of text.
The default style matches the CyberChef convention: hxxp/hxxps schemes, bracketed [://], bracketed dots and bracketed [@]. The difference is workflow — this page is a single‑purpose defanger with auto‑direction detection, refang in the same box, indicator counts and a one‑click download, rather than a recipe you have to assemble.
Yes. The refang pass recognises hxxp/hxxps, h**p/h**ps, [://], [:]//, [PROTOCOL], [.], [DOT], [@], [AT] and bracketed port colons, so mixed‑convention text from different vendors restores correctly in one pass.
No. All defanging and refanging is performed by JavaScript running in your own browser. Nothing is transmitted to a server, so live phishing URLs, internal hostnames and customer data in a pasted report stay on your machine.
Yes — that is the intended use. Paste multi‑line text and every URL, IPv4 address, domain and email address inside it is rewritten in place, leaving the surrounding prose untouched. The statistics panel then tells you how many of each indicator type were processed.
No. Defanging only stops accidental clicks and automated fetches. The underlying destination is still hostile; if you refang an indicator, treat it as live malware infrastructure and only interact with it from an isolated analysis environment.
Teams standardise on different conventions, and some destinations are more aggressive than others about re‑linking text. CyberChef style is the most widely understood, bracket style keeps the protocol legible for reports, and aggressive style survives systems that would otherwise reassemble a bracketed URL.
URL defanging is a security practice of modifying URLs and IP addresses so they cannot be accidentally clicked, followed, or automatically parsed as active links. Defanged indicators replace key characters — typically periods with [.] and protocol prefixes with hxxp — making the URL visually recognizable but not functional as a hyperlink.
Defanging is standard practice in threat intelligence sharing, incident reports, malware analysis documentation, and security communications. When analysts share indicators of compromise (IOCs) containing malicious URLs, defanging prevents accidental navigation to attacker-controlled infrastructure while preserving the information for investigation.
Defanging applies systematic character replacements to URLs and IP addresses:
| Original | Defanged | Replacement |
|---|---|---|
| https://malware.example.com | hxxps[://]malware[.]example[.]com | Protocol and dots |
| http://192.168.1.1/payload | hxxp[://]192[.]168[.]1[.]1/payload | Protocol and dots |
| evil@phishing.com | evil[@]phishing[.]com | At sign and dots |
| ftp://files.bad.com | fxp[://]files[.]bad[.]com | Protocol prefix |
Without defanging, simply documenting a malicious URL in a report could expose the reader to the threat.
URL defanging modifies URLs, IP addresses, and domain names to prevent them from being clickable or automatically parsed as live links.
Why it matters:
Common transformations:
http:// → hxxp://. → [.]@ → [@]Example: https://malware.com/payload.exe becomes hxxps://malware[.]com/payload[.]exe
This tool automatically applies these transformations and can reverse them (refanging) when needed for analysis.
Several defanging conventions exist in the security community:
Protocol defanging:
Dot replacement:
At sign replacement:
MITRE ATT&CK and STIX standards recommend the [.] and hxxp conventions. Most threat intel platforms recognize these patterns for automatic detection and refanging.
This tool supports multiple conventions based on your organization standards.
Each approach has different use cases:
Use defanging when:
Use screenshots when:
Avoid URL shorteners for malicious URLs because:
Best practice: Defang URLs in text, supplement with screenshots if visual context is needed. Never use URL shorteners for malicious URLs in security documentation.
Modern threat intelligence platforms have robust defanged URL handling:
Automatic detection:
Popular platform behaviors:
MISP: Auto-detects and refangs for analysis, stores canonical form, displays defanged, correlation works across formats.
AlienVault OTX: Accepts defanged input, API returns normalized URLs, automatic indicator extraction.
VirusTotal: Search accepts defanged URLs, reports show both formats, API normalizes automatically.
Splunk/SIEM tools: Field extraction handles both formats, lookup tables can normalize, correlation rules match either.
Tip: When building custom tools, implement both defang detection and normalization to ensure interoperability with the broader threat intel ecosystem.
Defanging and obfuscation serve different purposes in cybersecurity:
Defanging:
Obfuscation:
Key differences:
Obfuscation techniques attackers use:
For security analysts: Defang URLs in reports, de-obfuscate attacker URLs for analysis, never click obfuscated links, use URL sandboxes.
Several automation options exist for defanging URLs:
Command-line tools:
SIEM/SOAR integration:
Browser extensions:
API integration:
Email/Chat platforms:
Best practices:
Failing to defang URLs creates multiple security risks:
Risk 1: Accidental clicks - Analyst clicks malicious URL while reviewing, leading to browser exploitation, malware download, or credential harvesting.
Risk 2: Automated systems - URL previews fetch malicious content (link unfurling in Slack/Teams), email clients render tracking pixels, security scanners trigger malware delivery.
Risk 3: Information leakage - Referer headers reveal investigation, IP addresses exposed to attacker, timing information leaked.
Risk 4: Active content - Email HTML renders malicious sites, Markdown renderers create clickable links, documentation systems auto-link.
Risk 5: False positives - Security tools block legitimate reports, firewall blocks security team documentation.
Mitigation: Always defang in shared spaces, use URL sandboxes (VirusTotal, URLScan.io), implement browser isolation, train staff on defanged formats.
International Domain Names (IDNs) require special consideration when defanging:
What are IDNs? Domain names containing non-ASCII characters (e.g., münchen.de, 中国.cn). They use Punycode encoding for DNS compatibility.
IDN defanging challenges:
Visual similarity attacks (homoglyphs):
Punycode representation:
Best practices for IDN defanging:
Example output:
Display: münchen[.]de
Punycode: xn--mnchen-3ya[.]de
Warning: None (legitimate IDN)
Display: аpple[.]com
Punycode: xn--pple-43d[.]com
Warning: Contains Cyrillic characters resembling Latin
This tool handles IDNs by preserving original encoding while applying standard defanging rules.