Skip to content

ConvertTo-TitleCase

SYNOPSIS

Convert a string to title case.

SYNTAX

ConvertTo-TitleCase [-Text] <String> [<CommonParameters>]

DESCRIPTION

This command is a simple function to convert a string to title or proper case.

EXAMPLES

Example 1

PS C:\> ConvertTo-TitleCase "working summary"

Working Summary

Example 2

PS C:\> "art deco","jack frost","al fresco" | ConvertTo-TitleCase

Art Deco
Jack Frost
Al Fresco

PARAMETERS

-Text

Text to convert to title case.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

System.String

NOTES

Back to top