{{newin|[[11.0]]|110|type=function}}

Decode Data or a string from any of the [[EncodeFormat|EncodeFormats]] to Data or string.
 
== Function ==
=== Synopsis ===
<source lang="lua">
decoded = love.data.decode( container, format, sourceString )
</source>
=== Arguments ===
{{param|ContainerType|container|What type to return the decoded data as.}}
{{param|EncodeFormat|format|The format of the input data.}}
{{param|string|sourceString|The raw (encoded) data to decode.}}
=== Returns ===
{{param|value|decoded|[[ByteData]]/[[string]] which contains the decoded version of source.}}

== Function ==
=== Synopsis ===
<source lang="lua">
decoded = love.data.decode( container, format, sourceData )
</source>
=== Arguments ===
{{param|ContainerType|container|What type to return the decoded data as.}}
{{param|EncodeFormat|format|The format of the input data.}}
{{param|Data|sourceData|The raw (encoded) data to decode.}}
=== Returns ===
{{param|value|decoded|[[ByteData]]/[[string]] which contains the decoded version of source.}}

== See Also ==
* [[parent::love.data]]
* [[love.data.encode]]
[[Category:Functions]]
{{#set:Description=Decode Data or a string from any of the [[EncodeFormat|EncodeFormats]] to Data or string.}}
== Other Languages ==
{{i18n|love.data.decode}}