URL Defanger Tool

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.

By

Advertisement

Defang a URL, IP, Domain or Email in One Paste

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.

What Defanging Actually Does

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.

The Three Defang Styles

Different teams and tools expect different conventions, so this defanger offers three, selectable from the Style dropdown.

CyberChef style (default)

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/beacon
  • invoice@spam-domain.com → invoice[@]spam-domain[.]com
  • 203.0.113.45:443 → 203[.]0[.]113[.]45[:]443

Bracket style

Keeps 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[.]php

Aggressive style

Spells 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]com
  • admin@evil.com → admin[AT]evil[DOT]com

The 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.

How to Use the Defanger

  1. Paste your text. One indicator or an entire multi‑line report — the tool processes whole documents, not just single URLs, so you can drop in an email body, a log excerpt or a list of a hundred IOCs at once.
  2. Leave Auto‑detect on. The tool inspects the input for defang markers (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.
  3. Pick a style when defanging — CyberChef, Bracket, or Aggressive.
  4. Read the counters. A statistics panel tallies how many URLs, IP addresses, email addresses and bare domains were found, which is a quick sanity check that nothing in a long report was missed.
  5. Copy, download or share. Copy the output to the clipboard, download it as a .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.

Defanging IP Addresses

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: Turning IOCs Back Into Something You Can Query

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.

Where Defanged Indicators Belong

  • Incident tickets and email: anywhere a colleague might click by reflex, or a mail gateway might detonate the link on delivery.
  • Threat reports and blog posts: published research routinely defangs every indicator so readers cannot be harmed by the write‑up itself.
  • Chat and collaboration tools: Slack, Teams and Discord generate link previews that fetch the target URL automatically.
  • Phishing user reports: when forwarding a suspicious message to a security mailbox, defanging keeps the evidence intact without arming it.
  • Documentation and runbooks: a defanged IOC in a wiki survives indefinitely without becoming a live hazard for the next reader.

Frequently Asked Questions

What does it mean to defang a URL?+

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.

How do I defang an IP address?+

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.

Is this the same as CyberChef’s Defang URL operation?+

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.

Can I refang text that was defanged somewhere else?+

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.

Does my data get uploaded anywhere?+

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.

Can I defang a whole report instead of one URL?+

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.

Does defanging make a malicious link safe to open?+

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.

Why are there three different styles?+

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.

What is URL defanging and why is it important?+

URL defanging modifies URLs, IP addresses, and domain names to prevent them from being clickable or automatically parsed as live links.

Why it matters:

  • Prevents accidental clicks on malicious URLs during threat analysis
  • Stops automated systems from fetching malicious content
  • Allows safe sharing of indicators of compromise (IOCs)
  • Required for threat intelligence reports and security documentation

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.

What are the standard defanging conventions?+

Several defanging conventions exist in the security community:

Protocol defanging:

  • http → hxxp
  • https → hxxps
  • ftp → fxp

Dot replacement:

  • . → [.] (most common)
  • . → (.) (alternative)
  • . → [DOT] (verbose)

At sign replacement:

  • @ → [@]
  • @ → [AT]

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.

This tool is provided for informational and educational purposes only. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Results are based on the information you enter and do not constitute a security audit, a formal compliance assessment, or legal advice, and they do not establish that any system or organisation meets a given standard. Coverage of a framework may be partial — check what the tool states it assesses. For anything you intend to rely on, consult a qualified assessor.