---
title: from toml
categories: |
formats
version: 0.104.0
formats: |
Parse text as .toml and create record.
usage: |
Parse text as .toml and create record.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `from toml` for [formats](/commands/categories/formats.md)
<div class='command-title'>Parse text as .toml and create record.</div>
## Signature
```> from toml {flags} ```
## Input/output types:
| input | output |
| ------ | ------ |
| string | record |
## Examples
Converts toml formatted string to record
```nu
> 'a = 1' | from toml
╭───┬───╮
│ a │ 1 │
╰───┴───╯
```
Converts toml formatted string to record
```nu
> 'a = 1
b = [1, 2]' | from toml
╭───┬───────────╮
│ a │ 1 │
│ │ ╭───┬───╮ │
│ b │ │ 0 │ 1 │ │
│ │ │ 1 │ 2 │ │
│ │ ╰───┴───╯ │
╰───┴───────────╯
```