---
title: "Split Extension"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/os/splitextension
markdown: https://docs.nodetool.ai/nodes/lib/os/splitextension.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/os/splitextension.md
---

# Split Extension

**Type:** `lib.os.SplitExtension`

**Namespace:** `lib.os`

## Description

Split a path into root and extension components.
    files, path, extension, split

    Use cases:
    - Extract file extension
    - Process filename without extension
    - Handle file types

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| path | `str` | Path to split | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| root | `str` |  |
| extension | `str` |  |

## Related Nodes

Browse other nodes in the [lib.os](./) namespace.
