Tool.Yun
Praktische Tools für Entwickler
Barcode-Generator
Barcode-Lesegerät
GTIN-Validator
QR-Code-Decoder
QR-Code-Generator
QR-Kontaktinfo-Generator
WLAN-QR-Code-Generator
tools.epc-qrcode-generator.name
Bild zu SVG (Potrace)
Bild zuschneiden
Bild-EXIF/Metadaten/GPS/JPEG-Qualitätsleser
Bildervergleich
Bildfarbinverter
Bildformatkonverter
Bildgrößenänderung
Bildhintergrund entfernen
EXIF entfernen
GIF zu MP4
HEIC-Konverter
ICO/PNG-Konverter
Kamera-Rekorder
OCRize Bild und PDF
SVG-Vorschau
Wasserzeichen
BMI-Rechner
Erkläre den Shell-Befehl
IBAN-Validator und -Parser
IES-Beleuchtungsrichtlinien
ISBN-Validator und -Parser
ISO 3166 Ländercode-Sucher
ISO 639 Searcher
Kalenderkonverter
Kreditkarten-Checker
Lauftempo-Rechner
Luhn-Validator
MwSt.-Nummern-Validator
Online-Wörterbuch
RMB-Großbuchstabenkonverter
SLA-Rechner
Softwarelizenzkompatibilität
Telefonnummer-Parser und -Formatter
Unicode-Suche
Währungsrechner
Chronometer
Countdown
Cron/Wochentagsalarm
Datum-Uhrzeit-Konverter
Datums- und Dauerrechner
Dauerrechner
ETA-Rechner
ICAL-Dateiparser
ICAL-Generator
TTL-Rechner
Tagesrechner
Welcher Tag?
Wochennummern-Konverter
Zeitalarm
Zeitzonenkonverter
iCal-Fusion
Docker Compose Formatkonverter
Docker Compose in .env-Datei
Docker Compose zu Kubernetes
Docker Compose zu Quadlets
Docker Compose-Validator
Docker Image Downloader
Docker Pangolin Labels
Docker run zu Docker compose Konverter
Docker-Inspektion zum Docker-Ausführen
Docker-Lauf zu Kubernetes
Docker-Lauf zu Quadlets
Dockerfile-Labelgenerator
Konverter von Docker Compose zu Docker Run
Kubernetes RBAC-Generator
Traefik Docker Compose Maker
ANSI-Fluchttester
API-Tests
Angebotskonverter
CLI-Befehlseditor
CSS/JS-Formatierung und -Minifizierung
Code-/Skript-Highlighter
Curl-Konverter
Dateisplitter
Datenbank-Erstellungs-Generator
Datenbanktabellengenerator
Datenfälscher
Django Secret Generator
Favicon-Generator
Generator für Datenbankverbindungszeichenfolgen
GitIgnore Generator
Gitattributes-Generator
HEX-Dateikonverter
Javascript-Unobfuscator/Entpacker
Javascript-Verschleierung
Javascript-Verschönerung
Json zu Protobuf
Json zu SQL INSERT
Json zu Typescript
K6 Lasttest-Skriptgenerator
Mailto-Generator
Open Graph Meta-Generator
Picomatch-Tester
Pomodoro-Timer
SQL verschönern und formatieren
SQL-Minimierer
SQL-Parametergenerator
Stacktrace hübscher
String Escaper
Swagger UI-Tester
Tilgungsrechner
ActiveDirectory LDAP-Eigenschaftensucher
Bounce-E-Mail-Parser
Cookies-Parser
DMARC-Berichtsanalysator
DNS-Propagationstester
DNS-Tester
Dateityp-Detektor
E-Mail-Parser
EMV TLV-Decoder
ETH-Transaktionsdecoder
GZip/Deflate-Konverter
HTTPS-Tester
Hex-Encoder/Decoder
Keycode-Info
Konverter für Fließkommazahlen
Kurz-URL-Expander
MIME-Kodierungskonverter
Maskierung sensibler Daten
Middle-Endian-Konverter
MongoDB ObjectId-Konverter
Nmap-Befehlsgenerator
Outlook Safelink-Decoder
Outlook-MSG-Parser
Parquet-Dateien Reader
Pixelfehlertester
RJ45 Cat6 Verkabelungs-Spickzettel
SMART Raw-Konverter
Serielle Portkonsole
Sharepoint-Freigabe-URL-Decoder
Snowflake-ID-Extraktor
TCPDump-Generator
Text-Zeichensatz-Detektor/Decoder
URL-Generator
URL-Parser
Widerstandsrechner
键盘测试器
BIP39-Passphrasengenerator
Diceware-Passwortgenerator
NanoIDs-Generator
Numeronym-Generator
OTP-Code-Generator
PIN-Code-Generator
Passphrase-Generator
Token-Generator
UUID-Generator
UUID-Konverter
Zufallszahlengenerator
CSV zu JSON
JS-zu-JSON-Konverter
JSON Linter
JSON für unterwegs
JSON minifizieren
JSON nach C#
JSON verschönern und formatieren
JSON zu .env
JSON zu CSV
JSON zu Daten
JSON zu Java Entity
JSON zu MessagePack
JSON zu TOML
JSON zu TS
JSON zu XML
JSON zu YAML
JSON zum Objekt
JSON-Abfrage
JSON-Editor
JSON-Flattener/Unflattener
JSON-Größenanalysator
JSON-Sortiermaster
JSON-Unterschied
JSON-Zusammenführung
JSON-zu-JS-Konverter
JSON-zu-PHP-Code
Jq/JSONPath-Tester
Json Escaper/Unescaper
Json zu PHP-Array
Json zu Python
Json zu SQL DDL
Json zu Schema
Json-String-Konverter
Message Pack zu JSON
ObjGen zu JSON
PHP-Array zu JSON
tools.json-patch.name
Base64-Dateikonverter
Base64-Hex-Array-Encoder/Decoder
Base64-String-Encoder/Decoder
CSV zu Daten
Datenspeichereinheit-Konverter
E-Mail-Normalisierung
Eigenschaftenkonverter
Energieverbrauchs- und -kostencomputer
Env-Variablen-Formatkonverter
Excel in Daten
Ganzzahl-Basiskonverter
Geografische Koordinatenkonverter
Konverter von Unicode-Zeichen in Java-Entitäten
Römische Zahlen Konverter
Text zu ASCII-Binär
Text zu Unicode
Torrent zu Magnet
ULID-Generator
Viele Einheiten-Umrechner
dBm mW Konverter
AGE-Kryptographie
Ansible Vault Crypt entschlüsseln
Argon2 Hasher
Bcrypt
Bech32-Encoder/Decoder
CRC-Rechner
CSR-Generator
Datei-Hasher
ECDSA-Schlüsselpaargenerator
Ed25519 Schlüsselpaargenerator
HMAC-Generator
JWT-Generator
JWT-Parser
Jasypt-Stringverschlüsselung
Niceware Bytes zu Passphrase
PGP-Dateiverschlüsselung
PGP-Schlüssel
PGP-Verschlüsselung
Paseto/PASERK Lokal
Paseto/PASERK Öffentlich/Privat
RSA-Schlüsselpaar-Generator
RSA-Verschlüsselung
RSA/DSA/ECDSA-Signierer und -Verifizierer
SAML-Parser
SSL-Zertifikatkonverter
Shamirs Geheimnisteilung
Text hashen
Text verschlüsseln / entschlüsseln
X509-Zertifikatgenerator
Zertifikat-/Schlüsselparser
Als Markdown einfügen
Epub zu Markdown
HTML zu Markdown
Markdown Diff
Markdown Lorem Ipsum
Markdown zu DOCX
Markdown zu Daten
Markdown zu HTML
Markdown zu Text
Markdown-Editor
Markdown-Inhaltsverzeichnisgenerator
Markdown-Tabellengenerator
Markdown-Tabellenverschönerer
Markdown-Vorschau
tools.markdown-format-converter.name
Binärrechner
Konverter für mathematische Formate
Mathematische OCR
Mathematischer Auswerter
Trinkgeldrechner
Visualisierung trigonometrischer Kurven/Gleichungskurven
Benchmark-Builder
Geo-Entfernungsrechner
Prozentrechner
Seitenverhältnis-Rechner
ARPA-Decoder
Apache LogRotate Generator
BIMI DNS-Generator
Basic-Auth-Generator
Befehlsgenerator zum Herunterfahren
Chmod-Rechner
Cloudflare DNS/RDAP-Abfragen
Crontab-Generator
Curl-Befehlsgenerator
DKIM DNS Generator
DMARC DNS Generator
DNS-Abfragen
DNSBL-Checker
FStab-Generator
Festplattenrechner
Ganzzahlen zu IPv4/IPv6
HAS Desinfektionsmittel
HTAccess-Generator
Htpasswd/htaccess-Generator
IP-Geostandort
IPv4-6/IPRange/CIDR in IPRange/CIDR/IPMask
IPv4-Adresskonverter
IPv4-Bereichserweiterer
IPv4-Subnetzliste
IPv4-Subnetzrechner
IPv4/6 CIDR-zu-IP-Bereichsrechner
IPv4/6-Bereich zu CIDR(s)-Rechner
IPv6-Adresskonverter
IPv6-Subnetzrechner
IPv6-ULA-Generator
Iptables-Generator
Klingeln
Linearisierer für Shell-Befehle
MAC-Adressen-Generator
MAC-Adressensuche
MAC-Adresskonverter
Meine IP-Adresse
Mikrofonprufung
Multi-Link-Downloader
Nginx-Formatierer
Option43 Generator
PTR-DNS-Generator
Passwortstärken-Analysator
Portnummern
Punycode-Konverter
RAID-Rechner
RAID-Zuverlässigkeitsrechner
Rechner für die Datenübertragungsrate
Rechner zum Ausschließen von IP-Subnetzen
Rsync-Generator
SIP-Autorisierung
SPF-DNS-Generator
Shell-Befehlsformatierer
TCP/UDP-Porttester
UFW-Befehlsgenerator
Visueller Subnetzrechner
WPA PSK-Generator
Websocket-Tests
Whois-Checker
Wireguard-Konfigurationsgenerator
X-VR-SpamCause Decoder
ZPOOL RAID-Rechner
ZPool-Spickzettel
Zufälliger Port-Generator
Zxcvbn-Passwortstärke
firewalld-Befehlszeilengenerator
tools.restic-command-generator.name
tools.url-redirection-checker.name
HTML zu PDF
PDF entschlüsseln und entsperren
PDF-Kompressor
PDF-Linearisierung/FastWeb
PDF-Seitenextraktor
PDF-Signaturprüfer
PDF-Textextraktor
PDF-Verkettung
PDF-Verschlüsselung
Beleuchtungsstärke
Beschleunigungswandler
Drehzahlwandler
Druckeinheiten-Umrechner
Energieeinheiten-Umrechner
Fitnesscomputer
Flächeneinheiten-Umrechner
Frequenzumrichter
Krafteinheiten-Umrechner
Lebensmittel-Energie-Umrechner
Leistungswandler
Längeneinheiten-Umrechner
Masseneinheiten-Umrechner
SI-Präfix-Konverter
Temperaturkonverter
Volumeneinheiten-Umrechner
Volumenstrom-Umrechner
Winkeleinheiten-Umrechner
Allgemeines Regex-Spickzettel
Bash-Spickzettel
Docker Compose-Spickzettel
Docker SWARM-Spickzettel
Docker-Spickzettel
Dockerfile-Spickzettel
Git-Spickzettel
Jq Spickzettel
K8s Spickzettel
Markdown-Spickzettel
Nano-Spickzettel
Nginx-Spickzettel
PowerShell-Spickzettel
Regex-Spickzettel
Sed-Spickzettel
Spickzettel für Bildschirmbefehle
Spickzettel für CSS-Selektoren
Spickzettel für semantische Git-Commits
Spickzettel zur JSONPath-Syntax
Spickzettel zur XPath-Syntax
Tmux-Befehlsübersicht
VIM-Spickzettel
Zellij-Befehlsübersicht
chmod-Befehlsübersicht
Glücksrad
Kartenauswahl
Münzwerfer
Würfelroller
Cron-Ausdrucks-Generator
TOML Linter
TOML zu JSON
TOML zu YAML
ASCII-Art-Text-Generator
Bild in ASCII-Art
Doppelte Zeilensuche
Emoji-Picker
Fall-Konverter
GPT-Token-Encoder/Decoder
GPT-Token-Schätzer
I und L Prüfer
Intelligenter Textersetzer und Zeilenumbruch
JSON zu TOON
KI-Eingabeaufforderungssplitter
Levenshtein-Rechner
Listen Vergleichen
Listenkonverter
Lorem Ipsum Generator
Meerjungfrau-Exporteur
Morsecode-Konverter
Ordnerstrukturdiagramm
Packdateien für AI
RSVP-Leser
Regex-Tester
Runenkonverter
Schriftartenvergleich
Sed-Befehlsgenerator
Social Link Sharer
String-Verschleierer
TOON zu JSON
Tabulator zu Leerzeichen
Tastaturlayout-Konverter
Text aus HTML extrahieren
Text in Unicode-Namen
Text zu NATO-Alphabet
Textstatistiken
Textunterschied
Textübersetzer
Unicode zu GSM-7
Unicode-Formatierer
Verschiedene Wörter
Zalgo Generator/Banner
Zitatgenerator
Zufällige Zeilenauswahl
Bild zu CSS
CSS XPath-Konverter
CSS-Einheitenumrechner
CSS-Gradientengenerator
CSS-Verschönerer
Farbkontrast-Checker
Farbkonverter
Farbrad
Geräteinformationen
HTML zu Daten
HTML zu XHTML
HTML-Entity-Escape
HTML-Minimierer
HTML-Reiniger
HTML-Verschönerer
HTML-WYSIWYG-Editor
HTTP-Statuscodes
Kodieren/Decodieren von URL-formatierten Zeichenfolgen
MIME-Typen
REM-Pixelkonverter
SVG-Platzhalter-Generator
Slugify String
URL-Catcher
URL-Reiniger
URL-Textsuchfragment-Ersteller
UTM-URL-Generator
User-Agent-Parser
ObjectGen zu HTML
XML zu JSON
XML-Formatter
XML-Linter
XPath-Tester
XSLT-Tester
YAML verschönern und formatieren
YAML zu JSON
YAML zu TOML
YAML-Flattener/Unflattener
YAML-Fusion

Spickzettel zur XPath-Syntax

Spickzettel zur XPath-Syntax

XPath navigates an XML or HTML document as a tree. Every step has the form axis::node-test[predicate], and most of it has a short form: //div[@class="card"]/a/@href reads “the href of every a inside any div with class card”.

⚠️ Browsers, Selenium and most scrapers implement XPath 1.0. ends-with(), matches(), lower-case() and replace() are 2.0+ and only work in tools like xmllint, Saxon or lxml with an XSLT 2.0 processor. Workarounds for 1.0 are given below.

🧭 Path Syntax

XPathSelects
/From the document root — an absolute path
//Anywhere in the document, at any depth
.The current (context) node
..The parent of the context node
@attrAn attribute
*Any element
@*Any attribute
text()The text nodes of an element
node()Any node at all, text and comments included
[n]The nth match — 1-based, not 0-based
[last()]The last match
a | bThe union of two expressions
/html/body            (: absolute: the body of the page :)
//text()              (: every text node :)
./div/b               (: relative to the context node :)
(//p)[2]              (: the second p in the whole document :)
//p[2]                (: every p that is the second p of its parent :)

🏷 Elements & Attributes

XPathDescriptionCSS
//EEvery <E> elementE
(//E)[2]The second <E> in the document—
//E[@A]<E> carrying attribute AE[A]
//E[@A="t"]<E> where A is exactly tE[A='t']
//E[contains(@A,"t")]<E> where A contains tE[A*='t']
//E[starts-with(@A,"t")]<E> where A starts with tE[A^='t']
//E[substring(@A, string-length(@A)-2)="t"]<E> where A ends with t (1.0 trick)E[A$='t']
//E[ends-with(@A,"t")]The same, XPath 2.0+ onlyE[A$='t']
//E[matches(@A,"r")]A matches regex r (2.0+)—
//E/@AThe value of attribute A—
//*/@AAttribute A of any element—
//E[@A2="t"]/@A1A1 where A2 is t—
//E1[@id="I1"] | //E2[@id="I2"]Either elementE1#I1, E2#I2
//E[@id="I1" or @id="I2"]<E> with either idE#I1, E#I2

🆔 Id, Name, Class & Language

XPathDescriptionCSS
//*[@id="I"]The element with id I#I
//E[@id="I"]<E> with id IE#I
//*[@name="N"]Any element named N[name='N']
//*[@name="N"][@value="v"]Named N with value v[name='N'][value='v']
//*[contains(concat(" ", normalize-space(@class), " "), " C ")]Element with class C — the padding avoids matching C2.C
//E[contains(concat(" ", normalize-space(@class), " "), " C ")]<E> with class CE.C
//E[@lang="L" or starts-with(@lang, concat("L","-"))]<E> in language L or a subcodeE[lang|='L']

📝 Text & Links

XPathDescriptionCSS
//*[.="t"]Element whose whole text is exactly t—
//E[contains(text(),"t")]<E> with a text node containing t—
//E[contains(.,"t")]<E> whose text, descendants included, contains t—
//E[normalize-space()="t"]Exact text, ignoring surrounding whitespace—
//aEvery linka
//a[.="t"]The link labelled exactly t—
//a[@href="url"]The link pointing at urla[href='url']
//a[.="t"]/@hrefThe URL behind the label t—
//a[starts-with(@href,"https")]Secure links onlya[href^='https']

👪 Parents & Children

XPathDescriptionCSS
//E/*[1]First child of <E>E > *:first-child
//E/*[last()]Last child of <E>E > *:last-child
//E[1]Each <E> that is the first of its type in its parentE:first-of-type
//E[last()]Last <E> of its typeE:last-of-type
//E[2]Second <E> of its typeE:nth-of-type(2)
//*[2][name()="E"]Second child, if it is an <E>E:nth-child(2)
//E[last()-1]Second-to-last <E> of its typeE:nth-last-of-type(2)
//E/..The parent of <E>—
//div/form/parent::*Every element that has a form childdiv:has(> form)
//*[@id="I"]//E<E> anywhere under id I#I E
//E[count(*)=0]<E> with no element childrenE:empty
//E[count(*)=1]<E> with exactly one child—
//E[count(preceding-sibling::*)+count(following-sibling::*)=0]<E> that is an only childE:only-child
//E[count(../E)=1]<E> with no <E> siblingsE:only-of-type
//E1[E2 and not(*[not(self::E2)])]<E1> whose only children are <E2>—
//E[position() mod N = M + 1]Every Nth element, offset by ME:nth-child(Nn+M)

👥 Siblings

XPathDescriptionCSS
//E2/following-sibling::E1Every <E1> after a sibling <E2>E2 ~ E1
//E2/following-sibling::*[1][name()="E1"]<E1> immediately after <E2>E2 + E1
//E2/following-sibling::*[2][name()="E1"]<E1> two siblings after <E2>E2 + * + E1
//E/following-sibling::*[1]Whatever follows <E> directlyE + *
//E2/preceding-sibling::E1Every <E1> before a sibling <E2>—
//E2/preceding-sibling::*[1][name()="E1"]<E1> immediately before <E2>—
//E/preceding-sibling::*[1]Whatever precedes <E> directly—

📊 Tables & Form State

XPathDescriptionCSS
//*[@id="T"]//tr[3]//td[2]Third row, second cell#T tr:nth-child(3) td:nth-child(2)
//td[preceding-sibling::td="t"]The cell right after the one reading t—
//td[preceding-sibling::td[contains(.,"t")]]Cells following one containing ttd:has(~ td)
//table[count(tr)=1 and count(tr/td)=2]Tables with one row and two columns—
//table/tr[last()]The last row of a tabletable tr:last-child
//E[@disabled]A disabled controlE:disabled
//E[not(@disabled)]A control that is not disabledE:enabled
//*[@checked]A checked checkbox or radio:checked

🧮 Functions

Strings

FunctionReturns
contains(haystack, needle)True when the first string contains the second
starts-with(haystack, needle)True when it starts with it
concat(s1, s2, …)The strings joined together
normalize-space(s)The string with runs of whitespace collapsed and trimmed
string-length(s)The number of characters
substring(s, start [, length])A slice — 1-based
substring-before(haystack, needle)Everything before the first occurrence
substring-after(haystack, needle)Everything after it
translate(s, from, to)Characters mapped one by one — the 1.0 way to fold case

Numbers, logic & nodes

FunctionReturns
count(node-set)How many nodes matched
sum(node-set)The sum of their numeric values
position()The index of the context node within its step
last()The size of the context — so [last()] is the final node
name([node-set])The qualified name of the first node
namespace-uri([node-set])Its namespace URI
lang(s)True when the node is in that language
not(expr)The negation
true() / false()Boolean constants
boolean(expr) / string(o) / number(o)Type conversions
ceiling(n) / floor(n) / round(n)Rounding

💡 Case-insensitive matching in XPath 1.0: //E[contains(translate(@A,"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz"), "t")]

🧭 Axes

AxisShort formSelects
child(default)The direct children of the context node
descendant//Every node below the context node
descendant-or-self//The context node and everything below it
parent..The single parent node
ancestor—Parent, grandparent, up to the root
ancestor-or-self—The same, including the context node
following—Everything after the node in document order, except descendants
following-sibling—Later siblings under the same parent
preceding—Everything before it, except its ancestors
preceding-sibling—Earlier siblings under the same parent
attribute@The attributes of the node
self.The context node itself
//td[.="Total"]/ancestor::table          (: the table a cell belongs to :)
//h2[.="Specs"]/following-sibling::ul[1] (: the list after a heading :)
//input[@name="q"]/ancestor-or-self::form (: the form wrapping a field :)

🧠 Worked Examples

//hr[@class="edge" and position()=1]
(: the first hr of class 'edge' under each parent :)

//table[parent::div[@class="pad"] and not(@id)]//a
(: links in unnamed tables inside a padded div :)

/html/body/div/*[preceding-sibling::h4]
(: whatever comes after an h4 :)

//tr/td[font[@class="head" and text()="TRACK"]]
(: cells whose font child says TRACK :)

//*[count(*)=3]
(: elements with exactly three children :)

//rdf:Seq/rdf:li/em:id
(: namespaced elements — the prefixes must be bound by the host tool :)

//var | //acronym
(: a union of two node sets :)

🛠 Running XPath

// browser devtools console
$x('//a[contains(@href, "docs")]');

// plain DOM API
document.evaluate('//h1', document, null, XPathResult.ANY_TYPE, null).iterateNext();
# from the shell, over XML or HTML
xmllint --xpath '//book/title/text()' catalog.xml
xmllint --html --xpath '//a/@href' page.html 2>/dev/null
from lxml import html
tree = html.parse('page.html')
tree.xpath('//div[@class="card"]/a/@href')
# Selenium and Playwright both accept XPath locators
driver.find_element(By.XPATH, '//button[normalize-space()="Save"]')
page.locator('xpath=//button[normalize-space()="Save"]').click()

⚠️ Notes

  • Indexes start at 1. [0] never matches anything.
  • //E[1] is per-parent, (//E)[1] is document-wide — the single most common XPath bug.
  • Namespaced documents need prefixes registered with the host library; in XPath 1.0 a common workaround is //*[local-name()="title"].
  • // is expensive on large documents; anchor the path when you can.
  • Prefer text matching with normalize-space() — HTML is full of stray whitespace and line breaks.

📚 Resources

  • MDN — XPath
  • MDN — XPath functions
  • XPath 1.0 specification
  • XPath cheat sheet (alephzarro)

Credit to the original author: https://gist.github.com/jmaccabee/550a0b9fcfdc7e6b170cd34c6ec7bc56